When H2 database is in Postgres Mode, how do I check if it supports following statement (upsert / on conflict)
INSERT INTO event_log_poller_state (aggregate_type, consumer_group_id, value)
VALUES (?, ?, ?)
on conflict (aggregate_type, consumer_group_id) " +
" do update SET VALUE = ?
WHERE
event_log_poller_state.aggregate_type = ? AND
event_log_poller_state.consumer_group_id = ?
I get syntax error 42000
I're written following program to demonstrate
https://github.com/tonymurphy/h2-postgres
Edit Oct 2019: Checkout https://github.com/whisklabs/docker-it-scala or testcontainers.org