Skip to content

Commit

Permalink
Fix sequence schema generation tests to allow for if exists syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Apr 29, 2024
1 parent 258bf53 commit 24d55ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,14 @@ public void sequenceGeneratorTest() throws Exception {
* SEQUENCE SEQGENERATOR START WITH 10
*/

pass2a = findDataInFile(f2, "DROP TABLE SCHEMAGENSIMPLE");
pass2b = findDataInFile(f2, "DROP SEQUENCE SEQGENERATOR");
expected.clear();
expected.add("DROP TABLE");
expected.add("SCHEMAGENSIMPLE");
pass2a = findDataInFile(f2, expected);
expected.clear();
expected.add("DROP SEQUENCE");
expected.add("SEQGENERATOR");
pass2b = findDataInFile(f2, expected);

logger.log(Logger.Level.TRACE, "Execute the create script");
props = getPersistenceUnitProperties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,14 @@ public void sequenceGeneratorTest() throws Exception {
* SEQUENCE SEQGENERATOR START WITH 10
*/

pass2a = findDataInFile(f2, "DROP TABLE SCHEMAGENSIMPLE");
pass2b = findDataInFile(f2, "DROP SEQUENCE SEQGENERATOR");
expected.clear();
expected.add("DROP TABLE");
expected.add("SCHEMAGENSIMPLE");
pass2a = findDataInFile(f2, expected);
expected.clear();
expected.add("DROP SEQUENCE");
expected.add("SEQGENERATOR");
pass2b = findDataInFile(f2, expected);

logger.log(Logger.Level.TRACE, "Execute the create script");
props = getPersistenceUnitProperties();
Expand Down

0 comments on commit 24d55ac

Please sign in to comment.