Jinzhu
d483ffa45c
Fix Preload with nil pointer
2021-04-15 10:37:05 +08:00
Jinzhu
33601dc72f
Support Having w/o Group
2021-03-30 18:28:09 +08:00
Jinzhu
26e0c6fb69
skip test sqlserver due to it will raise data race for invalid sql
2021-03-24 17:12:30 +08:00
Jinzhu
8204d0ada2
Update tests script
2021-03-24 16:44:51 +08:00
Jinzhu
704e53a774
Call scopes before parse model value, close #4209
2021-03-24 16:35:39 +08:00
Jinzhu
4d5cec8bdd
Add golang 1.16
2021-03-24 14:22:36 +08:00
Genta Kamitani
26dd4c980a
Fix: FindInBatches ignores errors ( #4203 )
2021-03-22 14:11:07 +08:00
Jinzhu
8c92d9694a
Fix to call Scopes with using Migrator
2021-03-19 16:34:51 +08:00
Jinzhu
2055e29eb8
Refactor nested preload all associations
2021-03-14 10:42:58 +08:00
Jinzhu
912360097a
Fix Scopes with Migrator, close #4145
2021-03-11 10:36:14 +08:00
Ratan Phayade
a3abb5fedf
support named params in Select API ( #4142 )
...
* adds support for named arguments in select
* changes clause identifies and adds test
2021-03-07 10:59:00 +08:00
Jinzhu
a948c84607
Revert "Revert "Don't override the from clauses, close #4129" close #4139"
...
This reverts commit d6c23586ae
.
2021-03-05 22:19:34 +08:00
Jinzhu
d6c23586ae
Revert "Don't override the from clauses, close #4129" close #4139
...
This reverts commit 664755270d
.
2021-03-05 19:42:54 +08:00
Jinzhu
664755270d
Don't override the from clauses, close #4129
2021-03-04 19:16:08 +08:00
Jinzhu
eb9a704fda
Fix update UpdatedAt when full saving associations, close #4115
2021-02-26 17:11:25 +08:00
Jinzhu
189547f615
Fix new session with Begin, close #4120
2021-02-26 16:43:43 +08:00
Jinzhu
73d44a4f97
Fix create duplicated constraint, close #4090
2021-02-16 08:52:56 +08:00
Jinzhu
84ea3ec0cc
Fix sub query argument order with multiple raw SQL
2021-02-09 19:56:45 +08:00
Jinzhu
df24821896
Fix SubQuery for raw sql
2021-02-09 17:05:50 +08:00
yrong1997
2ba612e805
Add field tag to ignore migration ( #4028 )
...
* Add field tag to ignore migration
* Fix null value with space
* refactor migration tag
2021-02-09 16:03:02 +08:00
Jinzhu
883c32e59a
Support Unscoped when delete with selected associations, close #4062
2021-02-07 14:36:27 +08:00
Jinzhu
4373aa01ab
Don't call AfterFind hooks if no record found, close #4048
2021-02-07 12:44:59 +08:00
Jinzhu
3d3208ed60
initialize config plugins
2021-02-03 16:27:49 +08:00
Jinzhu
8500380e60
Add name checker test, close #4007
2021-01-27 17:45:59 +08:00
rorschach
ba59065024
retrieving gorm object support pointer
2021-01-27 11:48:47 +08:00
Jinzhu
08678106a4
Support replace associations without the creation in association mode, close #3937
2021-01-26 14:34:21 +08:00
Jinzhu
916338a9e1
Test migrate constraints, close #3986
2021-01-26 13:39:34 +08:00
Jinzhu
35ebfe6874
Support group conditions with single OR condition
2021-01-20 18:24:05 +08:00
Jinzhu
de850edb4f
Fix Change UpdatedAt to current time when doing OnConflict UpdateAll
2021-01-11 19:16:47 +08:00
Jinzhu
fe553a7c1a
Fix prepared statement in transaction mode can't be shared in normal operations, close #3927
2021-01-10 16:46:06 +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
1b8cb07cf2
Allow Where select fields when searching with struct
2020-12-30 18:13:52 +08:00
Jinzhu
ade0bd6d60
Fix SELECT with sql expression in some cases, close #3889
2020-12-28 10:40:30 +08:00
Jinzhu
ad8a5c0d1a
Add QueryFields mode when query many2many relations
2020-12-25 16:35:25 +08:00
Jinzhu
468152d45b
Add DisableNestedTransaction support
2020-12-16 19:33:35 +08:00
Jinzhu
6848ae872f
Fix gorm.Expr with SubQuery, fix #3857
2020-12-15 15:50:35 +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
14a0976dd4
populate the DeletedAt field when soft delete, fix #3855
2020-12-15 10:39:20 +08:00
Jinzhu
e1952924e2
Support named Joins, close #3833
2020-12-07 10:31:06 +08:00
Jinzhu
1ef1f0bfe4
Fix Count with complicated Select, close #3826
2020-12-06 14:30:42 +08:00
Jinzhu
0c12a4c360
Add CreateBatchSize option
2020-12-02 14:59:50 +08:00
Jinzhu
6950007d6a
Fix failed to parse relations when using goroutinue, close #3790
...
commit ee0ec43e8dfa85c1c1a562c2d0d47776cf8abd92
Author: Jinzhu <wosmvp@gmail.com>
Date: Fri Nov 27 14:31:57 2020 +0800
Fix failed to parse relations when using goroutinue, close #3790
commit 590e73ff95
Author: rokeyzhao <rokeyzhao@tencent.com>
Date: Thu Nov 26 20:27:55 2020 +0800
test: no cache preload in goroutine
2020-11-27 14:32:20 +08:00
Luis Guillermo Gómez
47ffd0bef4
Select all fields in SQL queries avoiding the SELECT * FROM ( #3731 )
...
* Select all fields in SQL queries avoiding the SELECT * FROM
* Select table name with fields in SQL queries
* Use QueryFields to execute the SQL query with all fields of the table
2020-11-20 15:38:25 +08:00
Deviller
d66af581b4
Fix Association.Replace() error returning ( #3766 )
...
* Fix Association.Replace() error returning
* Fallback to gorm.Model at TestAssociationNotNullClear()
2020-11-19 19:24:34 +08:00
Jinzhu
54b80b18bc
Allow to omit fields in associations, close #3752
2020-11-17 21:49:40 +08:00
Jinzhu
50df9da6a1
Allow to skip associations when creating join table for many2many, close #3605
2020-11-17 20:24:08 +08:00
Jinzhu
26504f5cae
Use NewDB to replace WithConditions for Session
2020-11-17 16:28:37 +08:00
Jinzhu
f6e1786ca2
Add skip hooks support
2020-11-17 15:19:58 +08:00
Jinzhu
f5c2126c29
Fix FindInBatches tests
2020-11-17 13:14:34 +08:00