Tony Dong
da268cec2c
Merge 55407b1f36d37289f06b5207ccf61dea00af2761 into 4e34a6d21b63e9a9b701a70be9759e5539bf26e9
2025-08-20 10:08:24 +02:00
Jinzhu
4e34a6d21b
Add tests for sub model
2025-08-20 12:51:17 +08:00
Jinzhu
67de7a8af8
performance improve for schema
2025-08-19 14:35:49 +08:00
Jinzhu
725aa5b5ff
Fix data race, close #7287 #7110 #7539 #7108
2025-08-18 19:44:52 +08:00
moseszane168
6cc2c01268
Update the docker compose file ( #7524 )
...
* Update the docker compose file to make /Tests/tests_all.sh can run successfully.
* Create database gorm in the compose file.
* Fix connection failure to local GaussDB instance (127.0.0.1:9950) that resulted in
"unexpected EOF" errors during initialization in tests.
2025-08-04 12:07:30 +08:00
Tony Dong
55407b1f36
Add ability to disable association upserts.
2025-08-02 11:22:41 -07:00
Phongphan Phuttha
eb90a02a07
fix: returning all columns with "on conflict do update" must considered as ScanUpdate ( #7534 )
2025-07-29 19:06:13 +08:00
Reza Mokaram
22d5239dec
feat(slog-integration) ( #7537 )
...
* feat(slog-integration)
- add a function for simple logger by slog
* feat(slog-integration)
- rows and err include in logs for slog logger
* fix(slog-fields)
- err record not found currectly ignored
2025-07-28 17:34:58 +08:00
贾一饼
49eaeacb89
optimize: field.ReflectValueOf ( #7530 )
tests / mysql (mysql:5.7, 1.24, ubuntu-latest) (push) Failing after 59s
tests / mysql (mysql:8, 1.23, ubuntu-latest) (push) Failing after 59s
tests / mysql (mysql:8, 1.24, ubuntu-latest) (push) Failing after 5s
tests / sqlite (1.23, ubuntu-latest) (push) Failing after 1m26s
tests / mysql (mysql:9, 1.23, ubuntu-latest) (push) Failing after 36s
tests / mysql (mysql:9, 1.24, ubuntu-latest) (push) Failing after 32s
tests / mariadb (mariadb:latest, 1.24, ubuntu-latest) (push) Failing after 9s
tests / mariadb (mariadb:latest, 1.23, ubuntu-latest) (push) Failing after 22s
tests / postgres (postgres:13, 1.23, ubuntu-latest) (push) Failing after 24s
tests / mysql (mysql:5.7, 1.23, ubuntu-latest) (push) Failing after 2m1s
tests / postgres (postgres:14, 1.23, ubuntu-latest) (push) Failing after 20s
tests / postgres (postgres:14, 1.24, ubuntu-latest) (push) Failing after 6s
tests / postgres (postgres:15, 1.24, ubuntu-latest) (push) Failing after 14s
tests / postgres (postgres:15, 1.23, ubuntu-latest) (push) Failing after 29s
tests / postgres (postgres:latest, 1.23, ubuntu-latest) (push) Failing after 26s
tests / postgres (postgres:latest, 1.24, ubuntu-latest) (push) Failing after 18s
tests / postgres (postgres:13, 1.24, ubuntu-latest) (push) Failing after 2m55s
tests / sqlite (1.24, ubuntu-latest) (push) Failing after 4m53s
tests / tidb (v6.5.0, 1.24, ubuntu-latest) (push) Failing after 2m6s
golangci-lint / lint (push) Failing after 6m41s
tests / gaussdb (opengauss/opengauss:7.0.0-RC1.B023, 1.23, ubuntu-latest) (push) Failing after 3m31s
tests / gaussdb (opengauss/opengauss:7.0.0-RC1.B023, 1.24, ubuntu-latest) (push) Failing after 3m38s
tests / sqlserver (1.23, ubuntu-latest) (push) Failing after 7m36s
tests / tidb (v6.5.0, 1.23, ubuntu-latest) (push) Failing after 12m41s
tests / sqlserver (1.24, ubuntu-latest) (push) Failing after 14m12s
Stale / stale (push) Successful in 13s
Close Missing Playground issues / stale (push) Successful in 6s
Close invalid questions issues / stale (push) Successful in 6s
v1.30.1
2025-07-23 13:02:49 +08:00
贾一饼
52b4744410
optimize: performance optimization ( #7526 )
2025-07-22 18:32:28 +08:00
Jinzhu
9af6d510b5
Fix query when map keys include table-qualified column names, close #7507
2025-07-22 14:21:04 +08:00
Jinzhu
c63374f5d1
Don't request LastInsertID from database if not necessary, close #7469
2025-07-21 17:55:20 +08:00
jc
b9c7e562b0
fix(schema): check the hook function parameter type ( #7468 )
...
* fix(schema): Check the callback function parameter type
* fix log
* fix
2025-07-21 17:06:16 +08:00
Riseif
985940f0d8
should check inner condition length ( #7512 )
2025-07-21 11:57:12 +08:00
moseszane168
991c2d4891
Add GaussDB Database Support ( #7508 )
...
* support gaussdb
* use github CI
* change function name
* use gorm.io/driver/gaussdb
---------
Co-authored-by: bing.ma <bing.ma@daocloud.io>
2025-07-21 10:46:58 +08:00
Jinzhu
751a6dde7a
Call after initialize for gorm.Config ( #7518 )
2025-07-15 12:05:03 +08:00
贾一饼
2f4925e017
A little optimization for filed.ValueOf ( #7499 )
...
Co-authored-by: 贾一饼 <Boyang.Liang@apulis.com>
2025-07-07 11:15:10 +08:00
Eshan-Jogwar
1e8baf5459
fixes #7486 ( #7492 )
...
* fixes #7486
* Added A test case for subset changes of model
* completed the test file for check_subset_model_change_test.go
2025-06-25 11:11:08 +08:00
Salent Olivick
842ee527eb
fix decimal migrate error.( #7450 ) ( #7450 )
...
Signed-off-by: Chise1 <chise123@live.com>
2025-06-06 10:35:01 +08:00
enomotodev
23c0d7cf05
test: update MySQL test matrix to use official images and add 9.0, 8.4 versions ( #7476 )
...
* test: update MySQL test matrix to use official images and add 9.0, 8.4 versions
* test: use major version tags for MySQL test matrix
2025-06-06 10:10:23 +08:00
Jinzhu
718eae4fdd
fix tests for mysql 9.0
2025-06-05 19:34:13 +08:00
Jinzhu
49b01a3e93
Fix Generics Scan, close https://github.com/go-gorm/playground/pull/803
2025-05-29 14:23:57 +08:00
Jinzhu
c44405a25b
Implement Generics API ( #7424 )
...
* Implement Generics API
* Add more generics tests
* Add more tests and Take method
* use delayed‑ops pipeline for generics API
* fix generics tests for mysql
* Support SubQuery for Generics
* Add clause.JoinTable helper method
* Fix golangci-lint error
* Complete the design and implementation of generic version Join
* improve generics version Joins support
* allow configuring select/omit columns for joins via subqueries
* finish generic version Preload
* handle error of generics Joins/Preload
* fix tests
* Add LimitPerRecord for generic version Preload
* fix tests for mysql 5.7
* test for nested generic version Join/Preload
* Add WithResult support for generics API
* test reuse generics db conditions
* fix data race
* remove ExampleLRU test
* Add default transaction timeout support
* fix test
v1.30.0
2025-05-25 15:40:40 +08:00
Name
751c1d6b45
perf(schema): avoid redundant strings.ToLower call ( #7464 )
...
Co-authored-by: 1911860538 <alxps1911@gmail.com>
2025-05-25 09:27:21 +08:00
codingplz
8e7ab46c1b
fix: return init dialector error ( #7379 )
...
* fix: return init dialector error
* mock defer
* fix: skip AfterInitialize
---------
Co-authored-by: wenyazhou.13 <wenyazhou.13@bytedance.com>
2025-05-22 10:53:47 +08:00
Name
e3037e4ef0
perf: break early on match failure in ParseConstraint ( #7402 )
...
Co-authored-by: 1911860538 <alxps1911@gmail.com>
2025-05-22 10:49:19 +08:00
pipipipipip
1204330419
feat: error message show field name ( #7452 )
...
* feat: error message show field name
* feat: failed to parse field
* feat: failed to parse field
---------
Co-authored-by: zyp <zyp>
2025-05-21 11:13:31 +08:00
Name
9703eb775f
perf: use strings.IndexByte to replace strings.Index ( #7454 )
...
Co-authored-by: 1911860538 <alxps1911@gmail.com>
2025-05-21 10:35:56 +08:00
Name
1c966e0d25
perf: use strings.Cut to replace strings.SplitN ( #7455 )
...
Co-authored-by: 1911860538 <alxps1911@gmail.com>
2025-05-21 10:35:23 +08:00
Jinzhu
e5b867e785
remove unnecessary session-level configuration for prepared statements
v1.26.1
2025-05-07 14:56:49 +08:00
iTanken
8c4e8e2d2a
fix: int type variable defaultMaxSize overflows in 32-bit environment ( #7439 )
...
Refs: #7435
2025-04-27 14:05:16 +08:00
Zhaodong Xie
a827495be1
Preparestmt use LRU Map instead default map ( #7435 )
...
* 支持lru淘汰preparestmt cache
* 支持lru淘汰preparestmt cache
* 支持lru淘汰preparestmt cache
* 只使用lru
* 只使用lru
* 只使用lru
* 只使用lru
* 只使用lru
* 只使用lru
* 只使用lru
* 只使用lru
* 只使用lru
* change const export
* Add stmt_store
* refact prepare stmt store
* Rename lru store
* change const export
* ADD UT
* format code and add session level prepare stmt config
* code format according to golinter ci
* ADD UT
---------
Co-authored-by: xiezhaodong <xiezhaodong@bytedance.com>
Co-authored-by: Jinzhu <wosmvp@gmail.com>
v1.26.0
2025-04-25 16:22:26 +08:00
Jinzhu
489a563293
only check new issues for golangci linter
2025-04-17 15:30:17 +08:00
Jinzhu
42bd4f603c
use golangci replace reviewdog ( #7426 )
...
* use golangci replace reviewdog
* Update golangci config
2025-04-17 11:55:13 +08:00
a631807682
a9d27293de
test: mssql ci
2025-03-11 15:56:46 +08:00
a631807682
3876ffe4bb
test: mssql ci
2025-03-11 15:56:46 +08:00
Jinzhu
ee3b549d7d
Update tests script
2025-03-09 15:35:17 +08:00
Aman
9f273777f5
fix deprecated reflect.PtrTo reflect.PointerTo usage ( #7366 )
...
* fix deprecated reflect.PtrTo reflect.PointerTo usage
* replace all deprecated reflect.PtrTo reflect.PointerTo usage
2025-02-13 14:16:26 +08:00
Vladimir Avtsenov
9ca84b3dde
fix concurrent map writes ( #7298 )
2025-01-12 19:49:06 +08:00
Max Katz
86b1d22911
chore: update copyright year ( #7332 )
2025-01-12 18:32:39 +08:00
Evyatar Yaffe
fed49230cb
Enhance db.Scan with ParamsFilter - Issue 7336 - Suggestion ( #7337 )
2025-01-12 18:19:28 +08:00
aviyam181199
8503287ca4
Fixed Empty Returning Clause Merge Bug ( #7339 )
2025-01-12 18:18:04 +08:00
nowindexman
4ef3af10ed
feat:Capitalize the priority field of IndexOption so that other systems can access this field from outside the package. ( #7342 )
2025-01-12 18:16:48 +08:00
Bennett Amodio
f482f25c71
fix: deterministic index ordering when migrating ( #7208 )
...
Issue: We observed that, when creating a database based on the same
gORM schema multiple times, indexes could appear in different orders,
hurting determinism for use-cases like schema comparison.
In order to fix this, it's simple to switch the ParseIndexes function
to return a list of indices rather than a map, so the callers will
iterate in deterministic order.
2024-12-06 10:27:44 +08:00
Jinzhu
6bfccf8afa
Refactor all tests script
2024-11-21 17:03:31 +08:00
Ivan Ryabov
49bbaa637f
use map look-up for indexes ( #7242 )
2024-11-14 17:41:43 +08:00
홍성욱
b0d70a26d1
[ #6372 ] Fixed nullable constraint bug for columns during auto migration ( #7269 )
...
* [#6372 ] Fixed nullable constraint bug for columns during auto migration
* [#6372 ] fix comment
* [#6372 ] Add test code
* [#6372 ] Add test code
* [#6372 ] Fix failed test case
* [#6372 ] Fix failed test case
* [#6372 ] wip
* [#6372 ] wip
* [#6372 ] wip
* [#6372 ] wip
2024-11-14 17:40:18 +08:00
omid fth
deceebfab8
Create CODE_OF_CONDUCT.md ( #7240 )
2024-10-17 14:18:13 +08:00
Yidi Sprei
52e3b353eb
refactor(workflow): update release workflow to enhance automation ( #7224 )
...
Replaced the old release workflow with a new setup using Release
Drafter. This refactor allows for more detailed release notes by
categorizing changes and automatically generating release drafts.
The new workflow triggers on semantic version tags and improves
permissions management. This change enhances the release process
by providing better documentation and automation.
2024-10-09 19:31:04 +08:00
Hansu Park
8020e8c166
refactor: improve logging for unimplemented ErrorTranslator in TranslateError config ( #7225 )
2024-10-09 19:29:48 +08:00