Hi, I'm working on a large legacy codebase and for some strange reason a subclass of BigDecimal is used. It seems to be important. The code is compatible with SqlServer, Oracle and SAP Hana and all vendors are compatible with the subclass.
It would be very useful to use H2 for testing. I think the class check can be safely removed, a developer that use a subclass of BigDecimal knows the risks he is running. Il giorno mercoledì 3 settembre 2014 19:05:11 UTC+2, Thomas Mueller ha scritto: > > Hi, > > Could you tell me more about your use case? Why do you want to use a > subclass of BigDecimal, and why can't you use the default BigDecimal? > > Regards, > Thomas > > > On Wednesday, September 3, 2014, Andrea Panattoni <[email protected] > <javascript:>> wrote: > >> Hi, >> >> With revision 4028 the system property h2.allowBigDecimalExtensions has >> been removed without providing any alternative for BigDecimal subclasses. >> >> Can you merge the following patch: >> >> Index: h2/src/main/org/h2/value/ValueDecimal.java >> =================================================================== >> --- h2/src/main/org/h2/value/ValueDecimal.java (revision 5837) >> +++ h2/src/main/org/h2/value/ValueDecimal.java (working copy) >> @@ -57,9 +57,6 @@ >> private ValueDecimal(BigDecimal value) { >> if (value == null) { >> throw new IllegalArgumentException(); >> - } else if (!value.getClass().equals(BigDecimal.class)) { >> - throw DbException.get(ErrorCode.INVALID_CLASS_2, >> - BigDecimal.class.getName(), value.getClass().getName >> ()); >> } >> this.value = value; >> } >> >> >> -- >> 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 http://groups.google.com/group/h2-database. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
