add correct example for pg's url (#857)

This commit is contained in:
toutou_o
2021-07-30 13:58:44 +08:00
committed by GitHub
parent 8270c7deed
commit a5e1d0d0dc
2 changed files with 3 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ func fromMysqlDataSource(url, pattern, dir string, cfg *config.Config, cache, id
func fromPostgreSqlDataSource(url, pattern, dir, schema string, cfg *config.Config, cache, idea bool) error {
log := console.NewConsole(idea)
if len(url) == 0 {
log.Error("%v", "expected data source of mysql, but nothing found")
log.Error("%v", "expected data source of postgresql, but nothing found")
return nil
}