@@ -134,14 +134,12 @@ func RemoveSpaceAndDelimiter(query string, d rune) string {
134134}
135135
136136func EscapeSpecialCharactersInComment (comment string ) string {
137- panic ("here!" )
138137 commentString := comment
139138 commentString = strings .ReplaceAll (commentString , "'" , "''" )
140139 commentString = strings .ReplaceAll (commentString , "\\ " , "\\ \\ " )
141140 commentString = strings .ReplaceAll (commentString , "\" " , "\\ \" " )
142141 commentString = strings .ReplaceAll (commentString , "\n " , "\\ n" )
143142 commentString = strings .ReplaceAll (commentString , "\r " , "\\ r" )
144-
145143 commentString = strings .ReplaceAll (commentString , "\x00 " , "\\ 0" )
146144 return commentString
147145}
@@ -152,7 +150,6 @@ var _ SchemaFormatter = &MySqlSchemaFormatter{}
152150
153151// GenerateCreateTableStatement implements the SchemaFormatter interface.
154152func (m * MySqlSchemaFormatter ) GenerateCreateTableStatement (tblName string , colStmts []string , temp , autoInc , tblCharsetName , tblCollName , comment string ) string {
155- panic ("here! 1" )
156153 if comment != "" {
157154 // Escape any single quotes in the comment and add the COMMENT keyword
158155 comment = fmt .Sprintf (" COMMENT='%s'" , EscapeSpecialCharactersInComment (comment ))
@@ -176,7 +173,6 @@ func (m *MySqlSchemaFormatter) GenerateCreateTableStatement(tblName string, colS
176173
177174// GenerateCreateTableColumnDefinition implements the SchemaFormatter interface.
178175func (m * MySqlSchemaFormatter ) GenerateCreateTableColumnDefinition (col * Column , colDefault , onUpdate string , tableCollation CollationID ) string {
179- panic ("here! 2" )
180176 var colTypeString string
181177 if collationType , ok := col .Type .(TypeWithCollation ); ok {
182178 colTypeString = collationType .StringWithTableCollation (tableCollation )
0 commit comments