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
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
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-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
Jinzhu
cc2d46e5be
reuse name for savepoints from nested transaction, close #6060
2023-03-10 17:42:38 +08:00
Jinzhu
1643a36260
Fix possible concurrency problem for serializer
2023-03-10 16:39:57 +08:00
Jinzhu
f3874339ef
Fix Save with stress tests
2023-03-02 17:22:51 +08:00
Cheese
02b7e26f6b
feat: add tidb integration test cases ( #6014 )
...
* feat: support tidb integration test
* feat: update the mysql driver version to test
2023-02-08 16:29:09 +08:00
Jinzhu
d834dd60b7
Remove unnecessary code
2023-01-19 15:22:13 +08:00
Jinzhu
3d35ddba55
Fix use table.* as select/omit columns
2023-01-12 16:52:56 +08:00
Jinzhu
2bc913787b
support implicit table alias, close #5840 #5940
2023-01-02 21:46:27 +08:00
Jinzhu
3d91802b1d
Fix unexpected alter table in auto migration, close #5942 , #5943
2023-01-02 21:06:04 +08:00
Jinzhu
4b768c8aff
Upgrade tests deps
2023-01-01 22:22:08 +08:00
Jinzhu
ddd3cc2502
Add ParameterizedQueries option support for logger, close #5288
2022-12-25 11:37:23 +08:00
Jinzhu
f91313436a
Fix group by with count logic
2022-11-21 11:10:56 +08:00
Jinzhu
ab5f80a8d8
Save as NULL for nil object serialized into json
2022-10-18 15:44:56 +08:00
Jinzhu
2a788fb20c
Upgrade tests go.mod
2022-10-17 17:01:42 +08:00
Jinzhu
2c56954cb1
tests mariadb with returning support
2022-10-08 20:48:22 +08:00
Jinzhu
e93dc3426e
Test postgres autoincrement check
2022-10-08 17:16:32 +08:00
Jinzhu
983e96f142
Add tests for alter column type
2022-10-08 16:04:57 +08:00
Jinzhu
34fbe84580
Add TableName with NamingStrategy support, close #5726
2022-10-07 21:18:37 +08:00
Stephano George
a3cc6c6088
Fix: wrong value when Find with Join with same column name, close #5723 , #5711
2022-09-30 17:18:42 +08:00
Jinzhu
3a72ba102e
Allow shared foreign key for many2many jointable
2022-09-22 15:03:41 +08:00
Shunsuke Otani
8c3018b96a
Replace `ioutil.Discard` with `io.Discard` ( #5603 )
2022-08-15 10:50:06 +08:00
hjwblog.com
6e03b97e26
fix: empty serilizer err #5524 ( #5525 )
...
* fix: empty serilizer err #5524
* feat: fix UnixSecondSerializer return nil
* feat: split type case
Co-authored-by: huanjiawei <huanjiawei@bytedance.com>
2022-07-27 13:59:47 +08:00
Jinzhu
62fdc2bb3b
Fix serializer with empty string
2022-07-11 11:51:05 +08:00
Jinzhu
fe01e1b9f4
Fix Model with slice data
2022-07-07 14:43:33 +08:00
dependabot[bot]
f4e9904b02
chore(deps): bump gorm.io/driver/mysql from 1.3.3 to 1.3.4 in /tests ( #5385 )
...
Bumps [gorm.io/driver/mysql](https://github.com/go-gorm/mysql ) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/go-gorm/mysql/releases )
- [Commits](https://github.com/go-gorm/mysql/compare/v1.3.3...v1.3.4 )
---
updated-dependencies:
- dependency-name: gorm.io/driver/mysql
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 10:26:09 +08:00
Jinzhu
6a6dfdae72
Refactor FirstOrCreate, FirstOrInit
2022-04-26 17:16:48 +08:00
Jinzhu
d421c67ef5
Remove ErrRecordNotFound error from log when using Save
2022-04-14 10:51:39 +08:00
Jinzhu
41bef26f13
Remove shared sync pool for Scanner compatibility
2022-04-11 21:37:44 +08:00
Jinzhu
9144969c83
Allow to use tag to disable auto create/update time
2022-04-02 17:17:47 +08:00
Jinzhu
f92e6747cb
Handle field set value error
2022-03-23 17:24:25 +08:00
Jinzhu
0097b39a77
Should ignore error when parsing default value for time, close #5176
2022-03-20 08:55:08 +08:00
Hasan
f3e2da5ba3
Added offset when scanning the result back to struct, close #5143
...
commit 9a2058164d44c98d7b586b87bed1757f89d6fad7
Author: Jinzhu <wosmvp@gmail.com>
Date: Thu Mar 17 22:34:19 2022 +0800
Refactor #5143
commit c259de2176
Author: Hasan <mr.k779@outlook.com>
Date: Mon Mar 14 20:04:01 2022 +0545
Update scan_test.go
commit 09f127b491
Author: Hasan <mr.k779@outlook.com>
Date: Mon Mar 14 19:23:47 2022 +0545
Added test for scanning embedded data into structs
commit aeaca493cf
Author: Hasan <mr.k779@outlook.com>
Date: Tue Mar 8 04:08:16 2022 +0600
Added offset when scanning the result back to struct
2022-03-17 22:52:40 +08:00
Jinzhu
6befa0c947
Refactor preload error check
2022-03-17 11:22:25 +08:00
Jinzhu
e2e802b837
Refactor Scan
2022-02-28 13:00:30 +08:00
Jinzhu
530b0a12b4
Add fast path for ValueOf, ReflectValueOf
2022-02-27 22:16:31 +08:00
Jinzhu
b1201fce4e
Fix update with customized time type, close #5101
2022-02-23 17:48:26 +08:00
Jinzhu
48ced75d1d
Improve support for AutoMigrate
2022-02-19 23:42:20 +08:00
Jinzhu
0af95f509a
Enhance migrator Columntype interface ( #5088 )
...
* Update Migrator ColumnType interface
* Update MigrateColumn Test
* Upgrade test drivers
* Fix typo
2022-02-19 17:02:53 +08:00
Jinzhu
39d84cba5f
Add serializer support ( #5078 )
...
* Update context
* Update GormFieldValuer
* Add Serializer
* Add Serializer Interface
* Refactor gorm field
* Refactor setter, valuer
* Add sync.Pool
* Fix test
* Add pool manager
* Fix pool manager
* Add poolInitializer
* Add Serializer Scan support
* Add Serializer Value method
* Add serializer test
* Finish Serializer
* Fix JSONSerializer for postgres
* Fix JSONSerializer for sqlserver
* Test serializer tag
* Add unixtime serializer
* Update go.mod
2022-02-19 17:02:53 +08:00
Jinzhu
4eeb839cea
Better support Stringer when explain SQL
2022-02-09 15:17:25 +08:00
Jinzhu
416c4d0653
Test query with Or and soft delete
2022-02-08 16:31:24 +08:00
Jinzhu
8d293d44dd
Fix docker-compose test env for Mac M1
2022-01-30 22:05:38 +08:00
Jinzhu
cec0d32aec
Support use clause.Expression as argument
2022-01-28 18:48:32 +08:00
dependabot[bot]
e5894ca449
chore(deps): bump gorm.io/driver/mysql from 1.2.1 to 1.2.3 in /tests ( #4987 )
...
Bumps [gorm.io/driver/mysql](https://github.com/go-gorm/mysql ) from 1.2.1 to 1.2.3.
- [Release notes](https://github.com/go-gorm/mysql/releases )
- [Commits](https://github.com/go-gorm/mysql/compare/v1.2.1...v1.2.3 )
---
updated-dependencies:
- dependency-name: gorm.io/driver/mysql
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-12 13:11:57 +08:00
Jinzhu
adf8f70f06
Upgrade go.mod
2021-12-10 17:50:19 +08:00
kinggo
d8a710cba2
fix: count() when use group by and only find one record ( #4885 )
...
Co-authored-by: 李龙 <lilong.21@bytedance.com>
2021-11-29 20:14:23 +08:00