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

Smartsql中,ResultMap对象类型不匹配时,Input String was not in a correct format能否定位到具体是哪个实体属性转换引起的 #127

Closed
kylix999 opened this issue Dec 24, 2019 · 2 comments
Assignees

Comments

@kylix999
Copy link

我们这边有时候,表结构发送更改之后,ResultMap匹配的时候,会出现如下异常
image
这个情况没有提示具体是哪个字段转换异常,由于这个报错的原因,是其他人修改了相应的表结构,而没有通知到其他人,而由于我们这边的表的列也非常多,一两百个字段,对起来非常的麻烦,是否能够在这个异常提示里面,增加一个针对是哪个字段转换而引起的异常,以方便项目组人员进行相应的定位。

@Ahoo-Wang
Copy link
Member

表结构更改之后,服务需要重启的。

@kylix999
Copy link
Author

我的意思是,表结构与字段不同的时候,会出现转换失败的错误,如上图所示,但是错误提示不明确,没有告诉是哪个字段转换错误,这个当字段很多的时候很难定位,是否能够在转换的时候,异常提示里面,提示出来是哪个字段类型转换出错

Ahoo-Wang added a commit that referenced this issue Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants