GORM Playground Link
https://github.com/go-gorm/playground/pull/509
Description
see pr⬆️
Comment From: a631807682
- update users set name = ? and age = ? where id = ?
+ update users set name = ?, age = ? where id = ?;
Comment From: feiyangbeyond
diff - update users set name = ? and age = ? where id = ? + update users set name = ?, age = ? where id = ?;
I mean it should return an error. but worked.
In latest mysql, gorm return an error
Comment From: a631807682
I can't use mysql 5.7 image in mac m1, gorm will not change raw sql, you can try to use https://github.com/go-sql-driver/mysql to compare different versions