Hi,
thanks for the update and clarification.
Kind regards
willy
On 11/30/21 11:29, Evgenij Ryazanov wrote:
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.Modeclass 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.
IDENTITYas 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
<https://groups.google.com/d/msgid/h2-database/b3c68051-8799-46a9-b79e-155b4c818215n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/2759b256-5ee0-af5c-2501-4f0c45c0e236%40gmail.com.