@@ -698,7 +698,9 @@ var tablespacesExtensionsSchema = Schema{
698698var triggersSchema = Schema {
699699 {Name : "TRIGGER_CATALOG" , Type : types .MustCreateString (sqltypes .VarChar , 64 , Collation_Information_Schema_Default ), Default : nil , Nullable : true , Source : TriggersTableName },
700700 {Name : "TRIGGER_SCHEMA" , Type : types .MustCreateString (sqltypes .VarChar , 64 , Collation_Information_Schema_Default ), Default : nil , Nullable : true , Source : TriggersTableName },
701- {Name : "TRIGGER_NAME" , Type : types .MustCreateString (sqltypes .VarChar , 64 , Collation_Information_Schema_Default ), Default : nil , Nullable : false , Source : TriggersTableName },
701+ // NOTE: MySQL limits trigger names to 64 characters, but we limit them to 96 chars to avoid breaking existing customers who were
702+ // relying on us not enforcing the 64 character limit. This is a good candidate to change in a future major version bump.
703+ {Name : "TRIGGER_NAME" , Type : types .MustCreateString (sqltypes .VarChar , 96 , Collation_Information_Schema_Default ), Default : nil , Nullable : false , Source : TriggersTableName },
702704 {Name : "EVENT_MANIPULATION" , Type : types .MustCreateEnumType ([]string {"INSERT" , "UPDATE" , "DELETE" }, Collation_Information_Schema_Default ), Default : nil , Nullable : false , Source : TriggersTableName },
703705 {Name : "EVENT_OBJECT_CATALOG" , Type : types .MustCreateString (sqltypes .VarChar , 64 , Collation_Information_Schema_Default ), Default : nil , Nullable : true , Source : TriggersTableName },
704706 {Name : "EVENT_OBJECT_SCHEMA" , Type : types .MustCreateString (sqltypes .VarChar , 64 , Collation_Information_Schema_Default ), Default : nil , Nullable : true , Source : TriggersTableName },
0 commit comments