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

            victor.ware Victor Ware
            lily.chi Lily Chi
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                7.0.X
                7.1.X
                Master