Hello.

Mode mode = Mode.getRegular();
mode.updateSequenceOnManualIdentityInsertion = true;
mode.identityColumnsHaveDefaultOnNull = true;

should restore old incorrect behavior (influenced by historic versions of 
MySQL and others), but it would be better to fix your application instead.
Please note that flags in org.h2.engine.Mode class aren't supported and 
they may be modified or removed in any version without a notice.

Also you normally should declare your column with ID *BIGINT GENERATED BY 
DEFAULT AS IDENTITY* PRIMARY KEY.
IDENTITY as a data type still works, but it isn't supported any more.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/b3c68051-8799-46a9-b79e-155b4c818215n%40googlegroups.com.

Reply via email to