-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 Mybatis Scanner 扫描的 xml 内包含大 SQL 报错 #60
Labels
bug
Something isn't working
not_compatible
not compatible old version
verified
the issue all pr is verified
Milestone
Comments
drivebyer
added a commit
that referenced
this issue
Nov 23, 2021
Add unique index on fingerprint and audit_plan_id by AutoMigrate() because gorm can't create index on TEXT column directly by tag. #60
drivebyer
added a commit
that referenced
this issue
Nov 24, 2021
drivebyer
added a commit
that referenced
this issue
Nov 24, 2021
缺陷原因:audit_plan_sqls 的 fingerprint 字段长度为 varchar(255),SQL 文本长度超过 255 后报错。 修复方案:将 audit_plan_sqls 的 fingerprint 与 last_sql 字段变更为 text 类型。 audit_plan_sqls 表上有一个 fingerprint 与 audit_plan_id 的联合唯一索引。当 fingerprint 变更为 text 类型后(text 类型不支持对全字段建立索引),需要在 fingerprint 字段上指定索引前缀。 升级方案:在SQLE 存储库执行下述 SQL:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
not_compatible
not compatible old version
verified
the issue all pr is verified
SQLe Version
v1.2110.pre1
Describe the bug
使用 Mybatis Scanner 扫描的 xml 内包含大 SQL 报错,如图所示
通过抓包发发现报错如下:
Expected behavior
Suggestion
The text was updated successfully, but these errors were encountered: