Cr
b62192456f
fix: diff schema update assign value ( #6096 )
2023-03-10 17:04:54 +08:00
Jinzhu
4d40e34734
Update select tests
2022-07-14 14:55:54 +08:00
Jinzhu
fe01e1b9f4
Fix Model with slice data
2022-07-07 14:43:33 +08:00
Jinzhu
6a18a15c93
Refactor check missing where condition
2022-02-25 10:48:23 +08:00
kinggo
b47cf57f5e
ci: add gofumpt check in reviewdog ( #4973 )
2022-01-06 15:02:53 +08:00
kinggo
e5bdd610c3
fix: save not use soft_delete ( #4897 )
...
* fix: Save not use soft_delete
* fix: save not use soft_delete
* fix: save not use soft_delete
* fix: save not use soft_delete
Co-authored-by: kinggo <>
2021-12-08 13:58:06 +08:00
Jinzhu
e953880d19
Add returning tests
2021-10-28 09:17:33 +08:00
Jinzhu
835d7bde59
Add returning support to delete
2021-10-28 07:56:55 +08:00
Jinzhu
af3fbdc2fc
Improve returning support
2021-10-26 22:40:14 +08:00
Jinzhu
04f049c1da
Add tests for RowsAffected
2021-09-09 11:22:55 +08:00
Jinzhu
ba16b2368f
Refactor update record ( #4679 )
2021-09-07 20:04:54 +08:00
riverchu
4581e8b590
test: update Save test
2021-09-06 20:13:20 +08:00
riverchu
c898622791
test: add testcase in TestSave
2021-09-06 20:13:20 +08:00
Jinzhu
de850edb4f
Fix Change UpdatedAt to current time when doing OnConflict UpdateAll
2021-01-11 19:16:47 +08:00
Jinzhu
7302c8a136
Fix tests and logger
2021-01-10 15:27:53 +08:00
Jinzhu
d888c799d7
Change UpdatedAt to current time when doing OnConflict UpdateAll
2021-01-08 19:20:42 +08:00
Jinzhu
0f00493c50
Continue to update tracking fields even not selected with Select, but skip them if omited with Omit, fix #3856
2020-12-15 11:18:29 +08:00
Jinzhu
05794298bd
Fix Save with specified table, close #3396
2020-09-06 12:22:08 +08:00
Jinzhu
b4166d9515
Fix V2 Save compatibility, close #3332
2020-08-30 10:21:11 +08:00
Jinzhu
59586dcd31
Fix unnecessary duplicated primary condition when using Save, close #3330
2020-08-29 23:02:19 +08:00
Jinzhu
ebdb4edda8
Add AllowGlobalUpdate mode
2020-08-23 20:08:23 +08:00
Jinzhu
50826742fd
Add error gorm.ErrInvalidData
2020-08-18 18:00:36 +08:00
Jinzhu
dea93edb6a
Copy TableExpr when clone statement
2020-08-13 16:28:21 +08:00
Jinzhu
ecc946be6e
Test update from sub query
2020-08-13 16:05:06 +08:00
Jinzhu
b5725940e9
Test Select with Update Struct
2020-07-06 11:20:43 +08:00
Jinzhu
e7b2e92ce3
Remove RecordNotFound method
2020-06-07 22:03:45 +08:00
Jinzhu
94685d1024
Fix can't scan null value into normal data types
2020-06-02 23:30:26 +08:00
Jinzhu
8bb05a5a69
Refactor tests files
2020-06-02 10:50:38 +08:00
Jinzhu
e986371a42
Rename package name
2020-06-02 09:18:01 +08:00
Jinzhu
1559fe24e5
Add more updates test
2020-06-01 19:41:33 +08:00
Jinzhu
e26abb84b3
Test block global update/delete
2020-05-31 20:42:07 +08:00
Jinzhu
9dd516a7e8
Test UpdateColumn
2020-05-30 17:34:22 +08:00
Jinzhu
028c9d6e17
Test Updates
2020-05-30 17:01:28 +08:00
Jinzhu
abae7f71c5
Test non std primary key and default value
2020-05-30 16:03:27 +08:00
Jinzhu
f0a442adff
Refactor tests
2020-05-23 23:50:48 +08:00