Make Oracle last_day function be compatible with H2 database
|Added at||2016-12-29 10:12|
I am writing integration testing and I want to test my sql queries by using a H2 database. In production these queries are running against an Oracle database.
I have to run this query
I have tries to use the compatibility mode
by using the oracle compatibility mode
It just seems that the compatibility mode does not cover the vendor-specific functions.
I have an idea how to solve this in testing. Just override the Oracle
But I am wondering if it is the best idea?
Is there a way to re-write the Oracle