Open findepi opened 3 years ago
I would like to work on this. You just need the type of exception changed right?
Hm... looking at the javadoc for java.sql.ResultSet#getTimestamp(int)
again.
The javadoc does not mandate use of SQLException in this case.
@rafatmunshi would you be able to check what's eg PostgreSQL's and Oracle's JDBC behavior here?
Hi, checked Oracle and Postgres JDBC docs. Both mention throws SQLException. Logically also I believe it should throw SQLException only as you suggested @findepi . So I think we just need to change the Exception type in the file and do the relevant change in the tests. Hope I am not missing something?
@jetsasank recently did similar improvement for getDate
, @rafatmunshi please check this out: https://github.com/prestosql/presto/pull/5510
Checked it. Clarifies my earlier query. Will send a PR soon. Thanks!
hi, is this available for a commit?
Hi @somayaj , I am working on a PR linked to this now. Thanks
should be
SQLException