Merge pull request #2202 from viniciusbds/patch-1

Update SqlCreateBuilder.java
This commit is contained in:
Antonin Delpeuch 2019-12-16 08:18:20 +01:00 committed by GitHub
commit 726395620b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ public class SqlCreateBuilder {
StringBuffer sql = new StringBuffer();
boolean includeDrop = JSONUtilities.getBoolean(options, "includeDropStatement", false);
boolean addIfExist = options == null ? false : JSONUtilities.getBoolean(options, "includeIfExistWithDropStatement", true);
boolean addIfExist = JSONUtilities.getBoolean(options, "includeIfExistWithDropStatement", true);
if (includeDrop) {
if(addIfExist) {
sql.append("DROP TABLE IF EXISTS " + table + ";\n");