-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Empty ResultSet And ResultSetLog output Total: 1 #1917
Comments
Hello @kilowang , Please fill out the bug report template.
And please use text instead of images. |
sorry for that, but i am already figure out what happened, there is no need to provide any Test case or example project, just do that like below
and will find below in log file
but the method +---------------+----------------+
| SUM(column1) | SUM(column2) |
+---------------+----------------+
| NULL | NULL |
+---------------+----------------+ yes, we queried one record , so when we enable debug, we got log like this
|
I agree that 'Total: 1' seems to be the right output. |
yeah, it's very hard to say that is a bug and the scenario is rare, i am not sure if you guys can do something make it clearly - keep ResultSetLog output and Mapper Method returnObj consistent, if Total: 1, return object not null, otherwise null |
I think you should try enabling Then you will receive an instance of |
Ok, i will try enable |
@harawata I want to know why I think it's strange for some scenario, such as list contains null element, which will lead to npe probably. |
|
Yep, I have great understand about default value, thx.
It's do will put null value to list in below scenario:
|
@Alice52 , If we change the default value, existing applications that expect Adding comments on closing issue is not appropriate. |
it 's very confused,the log tells me that there has one record
Total: 1
, actually , nothing, the ResultSet is EmptySo i debugged, found this
and this
that's make me crazy, i am read the source code , hope to find the reason, solve my problem.
finally, i am fixed my problem, it was caused by MySQL high level Driver need specify a serverTimezone
But i wasted too much time on read source code, and noting help to solve problem
we should fix this, make the log clearly and correctly
The text was updated successfully, but these errors were encountered: