Page 1 of 1

FB Generator ID with Applied Updates

Posted: Fri 28 Nov 2014 21:00
by FredS
This just showed up on a table with a Generator Name set and on gmPost set.
All works if I don't set the table to use Applied Updates.

Once I do that and want to retrieve an ID before Applying Updates I get ZERO.
Fair enough, I then GET the Next ID via SQL and post, all looks good until I hit Apply Updates then the ID is incremented by the TUniTable component.

Perhaps that function should check for NULL or Zero before generating a new ID?

Its an easy fix to only use self generated IDs but..

Re: FB Generator ID with Applied Updates

Posted: Mon 01 Dec 2014 09:12
by ViktorV
Unfortunately, we could not reproduce the issue in the way you have described.
Please send a small sample to demonstrate the issue to viktorv*devart*com, including a script to create and fill in test database tables.

Re: FB Generator ID with Applied Updates

Posted: Wed 10 Dec 2014 08:34
by ViktorV
Thank you for the information. We have reproduced and fixed the issue. The fix will be included in the next UniDAC build.