Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-92303

Fix the potential bug about the counter useage in SampleSQLBuilder and add more checking in SampleSQLBuilderTest to prevent this potential problem

    Details

      Description

      When use SampleSQLBuilder to generate data, we need to make sure that all the generation of data be finished before the currentId of counter being setted, otherwise, potential primary key conflict will appear when use SampleSQLBuilder to generate more kind of data for portal, becaused we use these counters to generate the primary key for DB Tables and when startup portal with the data that generated by SampleSQLBuilder, portal will use the currentid of the counter as the start of primary key to insert data.

        Attachments

          Activity

            People

            • Assignee:
              victor.ware Victor Ware
              Reporter:
              lily.chi Lily Chi
              Recent user:
              Enterprise Release HU
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: