Jinzhu
5553ff3dcb
downgrade mssql driver
2024-04-25 20:12:15 +08:00
Jinzhu
1e13fd7543
Fix duplicated columns in INSERT SQL for some fields with default value
2024-04-08 11:29:55 +08:00
Jinzhu
0d6c5345f3
Don't close prepared stmt for normal db error
2024-03-21 15:55:43 +08:00
Jinzhu
81536f823c
Fix insert id into map results, fix #6812
2024-03-19 11:50:28 +08:00
Jinzhu
e0c3be03fb
Fix tests in local
2024-03-18 16:28:46 +08:00
black-06
8fb9a31775
refactor: part 2 of distinguish between Unique and UniqueIndex ( #6822 )
2024-02-06 19:48:40 +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
Jinzhu
c1e911f6ed
Update tests/go.mod
2023-11-09 18:46:39 +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
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