(baseName string, suffix string)
| 359 | } |
| 360 | |
| 361 | func getSafeTableName(baseName string, suffix string) string { |
| 362 | name := fmt.Sprintf("_%s_%s", baseName, suffix) |
| 363 | if len(name) <= mysql.MaxTableNameLength { |
| 364 | return name |
| 365 | } |
| 366 | extraCharacters := len(name) - mysql.MaxTableNameLength |
| 367 | return fmt.Sprintf("_%s_%s", baseName[0:len(baseName)-extraCharacters], suffix) |
| 368 | } |
| 369 | |
| 370 | // GetGhostTableName generates the name of ghost table, based on original table name |
| 371 | // or a given table name |
no outgoing calls
no test coverage detected
searching dependent graphs…