Fix other bugs in syncer.

This commit is contained in:
Yang Luo
2021-12-25 00:05:54 +08:00
parent e79e3c36d0
commit 4b4c9be71b
5 changed files with 23 additions and 26 deletions

View File

@ -167,3 +167,11 @@ func (syncer *Syncer) getTableColumnsTypeMap() map[string]string {
}
return m
}
func (syncer *Syncer) getTable() string {
if syncer.DatabaseType == "mssql" {
return fmt.Sprintf("[%s]", syncer.Table)
} else {
return syncer.Table
}
}