Skip to content
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

[错误报告]: 数据变更记录插件BUG #6377

Closed
3 tasks done
xcore-fun opened this issue Aug 7, 2024 · 2 comments
Closed
3 tasks done

[错误报告]: 数据变更记录插件BUG #6377

xcore-fun opened this issue Aug 7, 2024 · 2 comments
Labels

Comments

@xcore-fun
Copy link

确认

  • 我的版本是最新版本, 我的版本号与 version 相同, 并且项目里无依赖冲突
  • 我已经在 issue 中搜索过, 确认问题没有被提出过
  • 我已经修改标题, 将标题中的 描述 替换为遇到的问题

当前程序版本

3.5.7

问题描述

DataChangeRecorderInnerInterceptor的getUpdatedColumnDatas方法的第352行有问题,这里没有判断propertyNameTrim跟columnName是否一致就直接修改了columnName的值导致数据错位造成异常

详细堆栈日志

No response

@xcore-fun
Copy link
Author

例如:

update sys_users


error_number = 0, locked_end_at = null, last_login_at = now()


error_number = error_number + case when locked_end_at is null then 1 else 0 end,
locked_end_at =
case when locked_end_at is null then
case when error_number = 4 then now() + interval '10' minute else null end
else locked_end_at end


where username = #{username}

error_number读取到的是字符串的0导致转换错误
conversion to class java.lang.String from int4 not supported

@nieqiurong nieqiurong added the bug label Aug 18, 2024
@nieqiurong
Copy link
Contributor

#6430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants