Skip to content

规则 使用联合索引时,必须使用联合索引的首字段 误报 #2208

@taolx0

Description

@taolx0

SQLe Version
2.9999.x

To Reproduce
对如下的SQL进行审核,会触发规则 使用联合索引时,必须使用联合索引的首字段
image

不应该触发该规则的原因
age字段已经走了单独的索引 idx_age,此时不使用联合索引的首字段,是符合逻辑的,不应该报错
image

Expected behavior
不触发

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpublish-pre3verifiedthe issue all pr is verified

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions