We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d95dda3 + f40f14b commit 94dfef3Copy full SHA for 94dfef3
1 file changed
go/logic/inspect.go
@@ -528,7 +528,7 @@ func (this *Inspector) CountTableRows() error {
528
529
this.migrationContext.Log.Infof("As instructed, I'm issuing a SELECT COUNT(*) on the table. This may take a while")
530
531
- query := fmt.Sprintf(`select /* gh-ost */ count(*) as rows from %s.%s`, sql.EscapeName(this.migrationContext.DatabaseName), sql.EscapeName(this.migrationContext.OriginalTableName))
+ query := fmt.Sprintf(`select /* gh-ost */ count(*) as 'rows' from %s.%s`, sql.EscapeName(this.migrationContext.DatabaseName), sql.EscapeName(this.migrationContext.OriginalTableName))
532
var rowsEstimate int64
533
if err := this.db.QueryRow(query).Scan(&rowsEstimate); err != nil {
534
return err
0 commit comments