dialect/sql/schema: correct wrong error message ("mysql" hard coded in Inspector method) (#1442)

This commit is contained in:
bshihr
2021-04-08 21:40:31 -07:00
committed by GitHub
parent 9090c103be
commit d7b683c0d3

View File

@@ -76,7 +76,7 @@ func (i *Inspector) tables(ctx context.Context) ([]string, error) {
rows = &sql.Rows{}
)
if err := i.Query(ctx, query, args, rows); err != nil {
return nil, fmt.Errorf("mysql: reading table names %w", err)
return nil, fmt.Errorf("%q driver: reading table names %w", i.Dialect(), err)
}
defer rows.Close()
if err := sql.ScanSlice(rows, &names); err != nil {