Skip to content

Commit 89388dc

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent e5e24a7 commit 89388dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/analyzer/validate_create_table.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,17 +794,17 @@ func validateAutoIncrementType(t sql.Type) bool {
794794
if types.IsEnum(t) || types.IsSet(t) || types.IsBit(t) {
795795
return false
796796
}
797-
797+
798798
// Check for text/string types - not allowed (includes TEXT, VARCHAR, CHAR, BLOB, BINARY, etc.)
799799
if types.IsText(t) {
800800
return false
801801
}
802-
802+
803803
// Check for datetime/time types - not allowed
804804
if types.IsTime(t) || types.IsDateType(t) || types.IsDatetimeType(t) || types.IsTimestampType(t) || types.IsYear(t) {
805805
return false
806806
}
807-
807+
808808
// Check for numeric types - only these are potentially allowed
809809
if types.IsNumber(t) {
810810
// DECIMAL is not allowed for auto_increment per MySQL behavior
@@ -813,7 +813,7 @@ func validateAutoIncrementType(t sql.Type) bool {
813813
}
814814
return true
815815
}
816-
816+
817817
// Default to false for any other types (JSON, Geometry, etc.)
818818
return false
819819
}

0 commit comments

Comments
 (0)