Skip to content

Commit 0a271d0

Browse files
committed
go fmt
1 parent c91d9d7 commit 0a271d0

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

go/logic/inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ func (this *Inspector) validateGhostTriggersLength() error {
566566

567567
}
568568
if len(foundTriggers) > 0 {
569-
return this.migrationContext.Log.Errorf("Gh-ost triggers (%s) length > 64 characters. Bailing out", strings.Join(foundTriggers, ","))
569+
return this.migrationContext.Log.Errorf("Gh-ost triggers (%s) length > %d characters. Bailing out", strings.Join(foundTriggers, ","),mysql.MaxTableNameLength)
570570
}
571571
}
572572

go/mysql/utils.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ type ReplicationLagResult struct {
3131
}
3232

3333
type Trigger struct {
34-
Name string
35-
Event string
34+
Name string
35+
Event string
3636
Statement string
37-
Timing string
37+
Timing string
3838
}
3939

4040
func NewNoReplicationLagResult() *ReplicationLagResult {
@@ -221,10 +221,10 @@ func GetTriggers(db *gosql.DB, databaseName, tableName string) (triggers []Trigg
221221

222222
err = sqlutils.QueryRowsMap(db, query, func(rowMap sqlutils.RowMap) error {
223223
triggers = append(triggers, Trigger{
224-
Name: rowMap.GetString("name"),
225-
Event: rowMap.GetString("event"),
224+
Name: rowMap.GetString("name"),
225+
Event: rowMap.GetString("event"),
226226
Statement: rowMap.GetString("statement"),
227-
Timing: rowMap.GetString("timing"),
227+
Timing: rowMap.GetString("timing"),
228228
})
229229
return nil
230230
})

0 commit comments

Comments
 (0)