Andrew Thornton
|
d7eb965a92
|
handle weird update n by mysql
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
2023-03-15 13:56:37 +00:00 |
Andrew Thornton
|
2715e0de59
|
add tests for map
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
2023-03-15 12:26:47 +00:00 |
Andrew Thornton
|
625167ded5
|
More cleanly handle primary keys as unique constraints
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
2023-03-15 11:47:44 +00:00 |
Andrew Thornton
|
4bf706dd0c
|
allow upsert on primary key
Signed-off-by: Andrew Thornton <art27@cantab.net>
|
2023-03-14 22:52:53 +00:00 |
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 |