Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

TableGenerator ignores initial value when no existing records of required type

Created: 28/Feb/11 03:51 PM   Updated: 01/Apr/11 03:26 PM   Resolved: 28/Feb/11 03:56 PM
Component/s: Value Generation
Affects Version/s: 2.2.2, 2.2.3, 3.0.0.m1, 3.0.0.m2
Fix Version/s: 3.0.0.m3

 Description  « Hide
If it finds the column-name of the id field passed in then it ignores the initial-value, which is wrong. Should use initial-value if provided, otherwise get the next available, otherwise start at 0

Andy Jefferson added a comment - 28/Feb/11 03:56 PM
SVN trunk fixes this, using initial-value if specified and >= 0, otherwise tries to get max of the column, otherwise uses 0

Andy Jefferson made changes - 28/Feb/11 03:56 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 01/Apr/11 03:26 PM
Status Resolved [ 5 ] Closed [ 6 ]