Hi Noel,

sorry for the delay - I had hoped to get some time to look more into adding 
tests around this and understanding how to create a clean commit around the 
Java6/7 toggles. Unfortunately I haven't found that time yet and chances 
are I won't in the near future.

I did make it work however, going via the global flag is pretty trivial. I 
published the change at 
https://github.com/peterbecker/h2database/commit/a9d33ea5b4a3ec5ec3757fb60055fc44474493fc
 
- it does not address the concept of returning the CHARs in the specified 
length, but it will retain the length they were written in. That is good 
enough for our purposes, so we started using a custom build I released 
internally. We are running quite a few tests through it, and all the 
expectations involving CHAR fields had to be fixed in the expected manner 
after turning the option off. I'm pretty confident it does what it is 
supposed to do, although we haven't anything that uses functions around 
CHAR types -- only fetching, equality and IN clauses.

I'd appreciate if it would go into the main build, but it's not a hard fork 
to maintain due to the small size. I'm happy to create a pull request if 
needed, or for you to just apply the change on your own.

Cheers,
   Peter



On Thursday, May 26, 2016 at 5:25:30 PM UTC+10, Noel Grandin wrote:
>
>
> On 26 May 2016 at 02:35, Peter Becker <[email protected] <javascript:>> 
> wrote:
>
>>
>> I tried this for a bit, but it's difficult. The two issues I am currently 
>> facing are:
>>
>> I honestly don't know. Possibly we will have to pass on the Mode idea and 
> make this some kind of global flag, as in your original idea.
>
>  
>
>>
>> And BTW: when running individual tests from my IDE (TestScript in 
>> particular), I see errors about not finding the resources for error 
>> messages. Is that expected or is there some way to fix that?
>>
>> Nope, I run it from my IDE(Eclipse) with no problems.
>
>

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