Same issue here. It seems that H2 converts to null already on evaluating the function, while Oracle does it later (on write?). Does this go for functions in general, or is does Oracle treat 'replace' differently in order to enable string filtering?
Is there any other way to make H2 filter particular characters from any position in a string? On Wednesday, January 6, 2016 at 5:37:02 PM UTC+1, Noel Grandin wrote: > > In other places Oracle converts empty strings to null. So what is > happening here is that we apply the Oracle emulation's "empty string > to null" logic, and then the REGEXP_REPLACE does it's thing. > > We'd need to include special logic in the REGEXP_REPLACE function to > cope with this in Oracle mode. > > Patches are welcome :-) > -- 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.
