Commit Graph

8 Commits

Author SHA1 Message Date
Andrew Thornton 4bf7c4d738
fix tidb
Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-14 21:03:48 +00:00
Andrew Thornton b4467b717a
Try getting the LastInsertID before the rows affected
Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-14 16:48:54 +00:00
Andrew Thornton 5a188e58d1
oops
Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-13 20:24:07 +00:00
Andrew Thornton e88ca1d017
only permit upsert if there is only one unique constraint
Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-13 18:42:34 +00:00
Andrew Thornton 1e50bd8705
more test changes
Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-13 11:03:02 +00:00
Andrew Thornton 643636c3b8
add an upsert test and fix mysql
Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-13 09:35:33 +00:00
Andrew Thornton c55adf1c26
mostly complete
Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-13 06:34:31 +00:00
Andrew Thornton 3a4fbeaa6f
Add InsertOnConflictDoNothing and Upsert functionality
This PR adds functionality for xorm to perform InsertOnConflictDoNothing
and Upserts.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2023-03-12 22:14:44 +00:00