I suppose the documentation referenced in the resultset source code is this 
one: 
http://download.oracle.com/otn-pub/jcp/jdbc-4_1-mrel-spec/jdbc4.1-fr-spec.pdf?AuthParam=1468073447_35daf833b8e7ab2b8fdc9dec8025a391

There's a table b-3 there that lists type conversions... That does look 
annoying as hell to implement. Can't the implementation be copied from 
somewhere else, from another jdbc project? Surely this thing has at some 
point been implemented by someone somewhere?

On Saturday, July 9, 2016 at 4:03:29 PM UTC+2, Marnick L'Eau wrote:
>
> Does the spec demand that h2 tries to "convert" it if the types don't 
> match? That's what I was afraid would be the reason for this 
> implementation, and it doesn't seem to make any sense at all for the spec 
> to demand such a thing.
>
> On Saturday, July 9, 2016 at 2:20:56 PM UTC+2, Noel Grandin wrote:
>>
>> nope, this is way more complicated than a one line patch, needs lots of 
>> "if class == ... perform conversion" type logic
>>
>> On 8 July 2016 at 17:05, Noel Grandin <[email protected]> wrote:
>>
>>> that commit was the simplest solution to getting someone's problem fixed.
>>>
>>> You are welcome to supply a patch to implement that method, but I have 
>>> not checked the JDBC spec to see if that is all that required, there may be 
>>> more.
>>> ​:-)
>>>
>>
>>

-- 
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