I know I can set a compatibility mode via SQL in H2, eg.
SET MODE ORACLE
Is there corresponding SQL to query which mode the database is currently in?
I know I can set a compatibility mode via SQL in H2, eg.
SET MODE ORACLE
Is there corresponding SQL to query which mode the database is currently in?
You can do:
SELECT VALUE FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME = 'MODE';
Then make a case insensitive comparison to the different modes.