Skip to content

优化resultSet.len判断,mysql单元测试修改 #2

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

maoSting
Copy link

如题,新手如有错误,望见谅。

Copy link
Owner

@snail007 snail007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其实为了避免*rs.rawRows访问异常,可以先判断 rs.rawRows 是否是nil,效率比反射要高。

@starichat
Copy link

属性都是私有的,不通过反射不可能判断呀

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

Successfully merging this pull request may close these issues.

3 participants