mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
bb71ccfd4c03e9ce8cd55c9e904a9191f7e14e05
## Summary When performing cross-database JOINs with soft-delete, the schema name parsed from `` `schema`.`table` `` format retains database-specific quote characters. These quoted schema names break `information_schema` WHERE clause queries in `TableFields` lookups. This PR strips quote characters from `usedSchema` in `Model.TableFields()`, matching the existing unquoting pattern used for `usedTable` via `guessPrimaryTableName`. ## Changes - `database/gdb/gdb_model_utility.go`: Add quote-stripping for `usedSchema` using `gstr.Trim` with database-specific quote chars from `GetChars()` ## Test Existing `Test_Issue2338` in MySQL (`contrib/drivers/mysql/mysql_z_unit_issue_test.go:685`) covers this case. The MariaDB version exists in PR #4724 branch (`contrib/drivers/mariadb/mariadb_z_unit_issue_test.go:688`), not yet merged. Once both PRs are merged, the MariaDB test will also validate this fix. closes #4725 Co-authored-by: John Guo <claymore1986@gmail.com>
refactor(container): add default nil checker, rename RegisterNilChecker to SetNilChecker, migrate instance containers to type-safe generics (#4630)
refract(gerror): add ITextArgs interface and its implements, mainly for i18n that needs text and args separately (#4597)
English | 简体中文
A powerful framework for faster, easier, and more efficient project development.
Installation
go get -u github.com/gogf/gf/v2
Documentation
- Official Site: https://goframe.org
- Official Site(en): https://goframe.org/en
- 国内镜像: https://goframe.org.cn
- Mirror Site: https://pages.goframe.org
- Mirror Site: Offline Docs
- GoDoc API: https://pkg.go.dev/github.com/gogf/gf/v2
- Doc Source: https://github.com/gogf/gf-site
Contributors
💖 Thanks to all the contributors who made GoFrame possible 💖
License
GoFrame is licensed under the MIT License, 100% free and open-source, forever.
Languages
GO
100%
