Skip to content

Commit

Permalink
GH-3 Add note about default values
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk authored Sep 10, 2021
1 parent a26898e commit eea527f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ StatisticsTable.upsert(conflictIndex = StatisticsTable.uniqueTypeValue,

**Notes**
* Remember to keep the same order of fields in insert & upsert body
* Default values are not supported ([GH-3](https://github.com/reposilite-playground/exposed-upsert/issues/3))
* Upsert functionality between _(MySQL, MariaDB, H2 with MySQL dialect)_ and _(PostgreSQL, SQLite)_ are slightly different.
To keep the compatibility between these databases, you should always use only one condition of uniqueness (unique column OR unique index).
MySQL based dialects may handle multiple queries due to the better support provided by generic `ON DUPLICATE KEY` query.
Expand Down

0 comments on commit eea527f

Please sign in to comment.