feat: revert "feat: fix the bug that sycner does not initialize" (#1926)

This reverts commit ec3c24ba68.
This commit is contained in:
hsluoyz
2023-06-03 09:17:34 +08:00
committed by GitHub
parent 0ec22ae6ff
commit 08dbbab70e
2 changed files with 10 additions and 7 deletions

View File

@ -107,7 +107,7 @@ func (syncer *Syncer) updateUser(user *OriginalUser) (bool, error) {
delete(m, syncer.TablePrimaryKey)
setString := syncer.getSqlSetStringFromMap(m)
sql := fmt.Sprintf("update %s set %s where %s = '%s'", syncer.getTable(), setString, syncer.TablePrimaryKey, pkValue)
sql := fmt.Sprintf("update %s set %s where %s = %s", syncer.getTable(), setString, syncer.TablePrimaryKey, pkValue)
res, err := syncer.Adapter.Engine.Exec(sql)
if err != nil {
return false, err