How can I find which compatibility mode an H2 database is in?

Viewed 743

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?

1 Answers

You can do:

SELECT VALUE FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME = 'MODE';

Then make a case insensitive comparison to the different modes.

Related