-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixes "ResultSet.getTime()
returns null
" bug
#1
Fixes "ResultSet.getTime()
returns null
" bug
#1
Conversation
Signed-off-by: Margarit Hakobyan <[email protected]>
Signed-off-by: Margarit Hakobyan <[email protected]>
ResultSet.getTime()
returns null bugResultSet.getTime()
returns null' bug
ResultSet.getTime()
returns null' bugResultSet.getTime()
returns null
" bug
Signed-off-by: Margarit Hakobyan <[email protected]>
if (value instanceof Time) { | ||
return asTime((Time) value); | ||
return (Time) value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the returned value here be converted to localtime similar to the case where value
is a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see what adding that extra step will accomplish in this case, so I return value
as java.sql.Time
when the value is of type java.sql.Time
. In case of string, value needs to be checked and converted correctly, so LocalTime is used to do so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gocha, thanks!
cal == null ? "null" : "Calendar TZ= " + cal.getTimeZone())); | ||
checkCursorOperationPossible(); | ||
Time value = getTimeX(columnIndex, cal); | ||
log.debug(() -> logExit("getTime", value)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Margarit Hakobyan <[email protected]>
Signed-off-by: Margarit Hakobyan <[email protected]>
…ject#41) * Fixes ResultSet.getTime returns null bug Signed-off-by: Margarit Hakobyan <[email protected]> Signed-off-by: Margarit Hakobyan <[email protected]>
Signed-off-by: Margarit Hakobyan [email protected]
Description
ResultSet.getTime()
returns non-null value reflecting the retrieved time instead ofnull
.Issues Resolved
opensearch-project#20
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.