We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddbfdce commit 662ef6eCopy full SHA for 662ef6e
src/NHibernate/Id/Enhanced/OptimizerFactory.cs
@@ -412,8 +412,10 @@ public override object Generate(IAccessCallback callback)
412
generationState.LastSourceValue = callback.GetNextValue();
413
generationState.Value = generationState.LastSourceValue;
414
// handle cases where initial-value is less than one (hsqldb for instance).
415
- while (generationState.Value < 1)
416
- generationState.Value++;
+ if (generationState.Value < 1)
+ {
417
+ generationState.Value = 1;
418
+ }
419
}
420
421
return Make(generationState.Value++);
0 commit comments