Hi. I just have a question about this behavior of the jdbc connector I came 
across in my project and couldn't understand. I'd like to understand why it 
was decided to work this way.


I tried to use getObject(String, Class) and kept getting null despite the 
result being there. I opened the source code and found it's implemented as 
simply "return null". Next I checked the code on github and found this commi 
<https://github.com/h2database/h2database/commit/d0b05c9c33792fa13b4c6be12be2621a8360aa94>
t. This is better already since at least it throws an exception instead of 
failing silently and returning a fake result, but why not simply implement 
it the way one would expect it to be?


@Overridepublic <T> T getObject(String columnName, Class<T> type) {
 return (T) getObject(columnName);
}

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to