Our logic for determining whether or not we needed to update last insert id only looked at the insertSource schema.
This does not take into consideration empty, NULL or DEFAULT values.
Additionally, the value that last insert id is set to depends on what the auto increment value will be.
This PR addresses those issues.
Also, has some refactoring for readability.
Our logic for determining whether or not we needed to update last insert id only looked at the insertSource schema. This does not take into consideration
empty
,NULL
orDEFAULT
values. Additionally, the value that last insert id is set to depends on what the auto increment value will be.This PR addresses those issues. Also, has some refactoring for readability.
fixes: https://github.com/dolthub/dolt/issues/7565