Aias00 opened a new issue, #6872:
URL: https://github.com/apache/shenyu/issues/6872
## Description
The join query does `INNER JOIN selector s on dr.selector_id = s.id and
s.enabled = 1 where s.name = #{selectorName}`. The `selector` table's name
column is `selector_name` (see `selector-sqlmap.xml:26` and
`Base_Column_List`), not `name`. Executing this statement throws `Unknown
column 's.name'`. Declared in `DiscoveryMapper.java:143` but no service-layer
caller found, so latent.
## Location
- `shenyu-admin/src/main/resources/mappers/discovery-sqlmap.xml:114-115`
## Impact
Latent broken SQL — wiring `selectBySelectorNameAndPluginName` throws
immediately.
## Suggested fix
Change `s.name` to `s.selector_name`.
## Related existing
Distinct from N19 (#6688, `auth_path` non-existent `namespace_id` column) —
different mapper, different non-existent column (`name` on `selector`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]