Merge pull request #200 from github/support-5-5

fixed 5.5 binlog_row_image default value
This commit is contained in:
Shlomi Noach 2016-08-26 08:29:33 +02:00 committed by GitHub
commit 4f9c1448d1

View File

@ -298,7 +298,7 @@ func (this *Inspector) validateBinlogs() error {
query = `select @@global.binlog_row_image`
if err := this.db.QueryRow(query).Scan(&this.migrationContext.OriginalBinlogRowImage); err != nil {
// Only as of 5.6. We wish to support 5.5 as well
this.migrationContext.OriginalBinlogRowImage = ""
this.migrationContext.OriginalBinlogRowImage = "FULL"
}
this.migrationContext.OriginalBinlogRowImage = strings.ToUpper(this.migrationContext.OriginalBinlogRowImage)