Add a warning/error when a field has both autoincrement and initvalue configured. #189
mjmatthiesen
started this conversation in
New Rule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If the initvalue is anything other than 0, then autoincrement won't trigger, causing you to have bad code, which means you have to reset your autoinc field each time.
Leads to an error on the second insert, as it will attempt to insert Entry No. 1 twice. Removing the initvalue property resolves this, or adding Rec.Entry=0
Beta Was this translation helpful? Give feedback.
All reactions