On 2016/05/19 5:39 AM, Peter Becker wrote:

I looked at how I could possibly fix this. The relevant code seems to be the 
first line
in org.h2.value.ValueStringFixed#get(String). I could probably add another 
field in org.h2.engine.SysProperties to
toggle the behaviour (obviously defaulting to the current one), but in many 
ways it seems appropriate to have it as a
toggle on org.h2.engine.Mode.

Putting a new flag in Mode is the right thing to do.

Changing ValueStringFixed#get seems like overkill. There are only a couple of call-sites that would need space-preservation, and from those you should be able to get the Mode.

Those call sites are org.h2.store.Data and org.h2.mvstore.db.ValueDataType

You will probably need to extend the  org.h2.store.DataHandler interface to 
expose the Mode to the above classes.


Regards, Noel

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