This is an automated email from the ASF dual-hosted git repository.
struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git
The following commit(s) were added to refs/heads/master by this push:
new c7c13d3 OPENJPA-2848 duplicate DROP SEQUENCE stmt
c7c13d3 is described below
commit c7c13d3e8be25512b0e9451f5bbe3706a07c7206
Author: Mark Struberg <[email protected]>
AuthorDate: Sun Mar 28 19:58:28 2021 +0200
OPENJPA-2848 duplicate DROP SEQUENCE stmt
txs to Christian Tu for the patch!
---
.../src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java
b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java
index 1bdbf64..32a803c 100644
--- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java
+++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java
@@ -918,9 +918,7 @@ public class SchemaTool {
dbSeq.getSchema().removeSequence(dbSeq);
else
_log.warn(_loc.get("drop-seq", seqs[j]));
- }
-
- if (_writer != null) {
+ } else if (_writer != null) {
dropSequence(seqs[j]);
}
}