Update SqlCreateBuilder.java

This commit is contained in:
Vinicius Barbosa 2019-10-25 12:22:16 -03:00 committed by GitHub
parent 9cb53ae58f
commit d452e3040c
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");