go-ozzo / ozzo-dbx

A Go (golang) package that enhances the standard database/sql package by providing powerful data retrieval methods as well as DB-agnostic query building capabilities.
MIT License
638 stars 91 forks source link

Fix upsert #70

Closed vasilistefanenko closed 4 years ago

vasilistefanenko commented 6 years ago

When creating upsert, you update sql for query, but don't update raw sql. In which case worked "insert", but didn't work "on conflict ...".

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 89.254% when pulling 2554a652bf7e7a5ff9ddf8f4dfd87dcec867a40a on vasilistefanenko:fix_upsert into e984ee904f1b2df904d0b2e6b2ca5064c87c0409 on go-ozzo:master.

qiangxue commented 4 years ago

Thank you for fixing the issue! Sorry for very late reviewing and merging.