black
2d4889d802
resolve conflicts
2024-02-04 14:21:11 +08:00
black
184ec8e136
Merge branch 'master' into distinguish_unique
...
# Conflicts:
# tests/go.mod
2024-02-04 14:20:13 +08:00
black-06
418ee3fc19
fix: preload shouldn't overwrite the value of join ( #6771 )
...
* fix: preload shouldn't overwrite the value of join
* fix lint
* fix: join may automatically add nested query
2024-01-29 11:34:57 +08:00
Jinzhu
940358e0dd
Fix tests doesn't follow https://gorm.io/docs/method_chaining.html convention
2024-01-12 16:42:21 +08:00
Alexis Viscogliosi
a2cac75218
feature: bring custom type and id column name to polymorphism ( #6716 )
...
* feature: bring custom type and id column name to polymorphism
* relationship: better returns for hasPolymorphicRelation
* fix: tests
2023-12-15 16:36:08 +08:00
Franco Liberali
f0af94cd16
add test to show that update from works
2023-12-04 11:50:58 +08:00
black
7e1b4c55b6
revert: revert MigrateColumn
2023-11-24 17:39:43 +08:00
black
647bd36d01
Merge branch 'master' into distinguish_unique
...
# Conflicts:
# tests/go.mod
2023-11-20 15:44:03 +08:00
FangSqing
3207ad6033
map insert support return increment id ( #6662 )
2023-11-15 21:32:56 +08:00
Jinzhu
c1e911f6ed
Update tests/go.mod
2023-11-09 18:46:39 +08:00
black-06
9fea15ae75
feat: add MigrateColumnUnique ( #6640 )
...
* feat: add MigrateColumnUnique
* feat: define new methods
* delete debug in test
2023-10-30 17:15:49 +08:00
Cr
5adc0ce5f6
test: fix TestEmbeddedRelations ( #6639 )
2023-10-26 11:58:13 +08:00
gleb
78e905919f
tests/sqilte: enable FOREIGN_KEYS inside OpenTestConnection ( #6641 )
2023-10-26 11:54:15 +08:00
black
a4a28cebd2
go mod tidy
2023-10-13 18:13:33 +08:00
black
cf41030029
Merge branch 'master' into distinguish_unique
...
# Conflicts:
# tests/go.mod
# tests/migrate_test.go
2023-10-13 18:11:31 +08:00
Franco Liberali
6bef318891
add support for returning in sqlserver ( #6585 )
2023-10-10 15:03:34 +08:00
Samuel N Cui
2095d42b4c
fix: sqlite dialector cannot apply PRIMARY KEY AUTOINCREMENT
type ( #6624 )
...
* fix: sqlite dialector cannot apply `PRIMARY KEY AUTOINCREMENT` type
fix #4760
* feat: add auto increment test
* feat: update sqlite
* feat: update tests deps sqlite to v1.5.4
2023-10-09 17:26:27 +08:00
Jinzhu
e57e5d8884
Update go.mod
2023-08-27 15:40:54 +08:00
fayvori
3c34bc2f59
refactor: Regex description ( #6507 )
...
* Mirror cleanup
* Regex description
---------
Co-authored-by: Ignat Belousov <ignatbelousov@Ignats-MacBook-Pro.local>
2023-08-07 16:35:19 +08:00
Saeid
1fb26ac90e
test: coverage for tabletype added ( #6496 )
...
* test: coverage for tabletype added
* test: tidb exclueded
---------
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>
2023-08-04 10:30:07 +08:00
Jinzhu
a7f01bd1b2
Test Pluck with customized type
2023-07-25 10:47:19 +08:00
Saeid
c10f807d3c
test: coverage for foreign key violation err ( #6403 )
...
* test: coverage for foreign key violation err
* test: enabled foreign keys constraint for sqlite
* test: enabled mysql& mssql for ErrForeignKeyViolate
* test: disabled mysql & updated sqlserver driver version
* test: skipped tidb
---------
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>
2023-07-12 21:21:22 +08:00
black
b2158f6b7d
update test mod
2023-06-17 19:32:56 +08:00
black
45125bbea7
Merge branch 'master' into distinguish_unique
...
# Conflicts:
# tests/go.mod
2023-06-17 19:31:05 +08:00
black
56eb4be78e
fix unit test
2023-06-15 16:44:31 +08:00
black
f099f93777
fix test
2023-06-14 21:43:08 +08:00
black
1529430536
fix MigrateColumnUnique
2023-06-14 21:08:11 +08:00
black
a9e2dfc503
modify unique to constraint
2023-06-14 18:54:56 +08:00
Saeid
c2d571cbc8
test: coverage for duplicated key err ( #6389 )
...
* test: ErrDuplicatedKey coverage added
* test: updated sqlserver version
* test: removed sqlserver
* test: support added for sqlserver
---------
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>
2023-06-10 21:05:19 +08:00
black
567f44f14e
add ParseIndex test
2023-06-09 18:53:17 +08:00
black
387fca3478
add test
2023-06-08 19:24:06 +08:00
Nuno Cruces
7157b7e375
fix: database/sql.Scanner should not retain references ( #6380 )
2023-06-07 15:02:07 +08:00
black
c1ea730367
fix: avoid panic when open fails
2023-06-01 15:22:21 +08:00
black-06
11fdf46a9f
fix: save with hook ( #6285 ) ( #6294 )
2023-05-26 10:28:02 +08:00
wangliuyang
812bb20c34
fix(nested transaction): SavePoint SQL Statement not support in Prepared Statements ( #6220 )
...
* test: add nested transaction and prepareStmt coexist test case
note: please test in the MySQL environment
Change-Id: I0db32adc5f74b0d443e98943d3b182236583b959
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>
* fix(nested transaction): SavePoint SQL Statement not support in Prepared Statements
1. SavetPoint SQL Statement not support in Prepared Statements
e.g. see mysql8.0 doc: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html
Change-Id: I082012db9b140e8ec69764c633724665cc802692
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>
* revert(transaction_api): remove savepoint name pool,meaningless
Change-Id: I84aa9924fc54612005a81c83d66fdf8968ee56ad
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>
---------
Signed-off-by: 王柳洋 <wangliuyang.520@bytedance.com>
Co-authored-by: 王柳洋 <wangliuyang.520@bytedance.com>
2023-05-26 10:24:28 +08:00
Saeid
8197c00def
refactor: error translator test ( #6350 )
...
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>
2023-05-25 11:10:00 +08:00
Jinzhu
c3d7d08b9a
Clear SET clause after build SQL
2023-05-15 15:43:44 +08:00
aclich
63534145fd
fix: 🐛 embedded struct test failed with custom datatypes ( #6311 )
...
* fix: 🐛 embedded struct test failed with custom datatypes
Fix the pointer embedded struct within custom datatypes and *time.time
should be nil issue.
* fix: 🐛 change test case to avoid mssql driver issue
change test cases from bytes to string to avoid mssql driver issue
2023-05-15 09:59:26 +08:00
black-06
32045fdd7d
feat: unscoped association ( #5899 ) ( #6246 )
...
* feat: unscoped association (#5899 )
* modify name because mysql character is latin1
* work only on has association
* format
* Unscoped on belongs_to association
2023-05-04 19:30:45 +08:00
hykuan
67642abfff
fix: 🐛 numeric types in pointer embedded struct test failed ( #6293 )
2023-05-04 19:29:31 +08:00
Cr
407bedae0a
fix: nested joins alias ( #6265 )
2023-04-26 22:19:32 +08:00
black-06
ac20d9e222
fix: unit test ( #6250 )
...
* fix: unit test
* fix create test
https://github.com/go-gorm/gorm/pull/6127#discussion_r1171214125
* style: rename to adaptorSerializerModel
2023-04-21 22:09:38 +08:00
black-06
828e22b17f
feat: support embedded preload ( #6137 )
...
* feat: support embedded preload
* fix lint and test
* fix test...
2023-04-11 13:10:38 +08:00
black-06
4b0da0e97a
fix cond in scopes ( #6152 )
...
* fix cond in scopes
* replace quote
* fix execute scopes
2023-04-11 12:01:23 +08:00
bsmith-auth0
ccc3cb758a
fix: many2many association with duplicate belongs to elem ( #6206 )
2023-04-11 11:06:13 +08:00
Cr
f0360dccbf
fix: embedded should be nil if not exists ( #6219 )
2023-04-11 10:13:25 +08:00
Saeid Kanishka
b444011d09
refactor: translatorError flag added for backward compatibility ( #6178 )
...
Co-authored-by: Saeid Saeidee <s.saeidee@sensysgatso.com>
2023-03-24 10:07:05 +08:00
black-06
1a7ea98ac5
fix: count with group ( #6157 ) ( #6160 )
...
* fix: count with group (#6157 )
* add an easy-to-understand ut
2023-03-23 11:19:53 +08:00
black-06
0c7e575f19
save should be idempotent #6139 ( #6149 )
2023-03-23 11:18:57 +08:00
Jinzhu
cc2d46e5be
reuse name for savepoints from nested transaction, close #6060
2023-03-10 17:42:38 +08:00