Commit 38247479 authored by tristaZero's avatar tristaZero
Browse files

modify getInitSQLs

parent 8e47e857
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ package io.shardingsphere.dbtest.env.authority;

import io.shardingsphere.core.constant.DatabaseType;
import io.shardingsphere.dbtest.env.authority.sql.SQLSet;
import io.shardingsphere.dbtest.env.authority.sql.SQLType;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@@ -46,7 +45,7 @@ public final class Authority {
    public Collection<String> getInitSQLs(final DatabaseType databaseType) {
        Collection<String> result = new LinkedList<>();
        for (SQLSet each : sqlSets) {
            result.addAll(each.getAllSQLContent(SQLType.Init, databaseType));
            result.addAll(each.getCreateUserSQLs(databaseType));
        }
        return result;
    }
@@ -60,7 +59,7 @@ public final class Authority {
    public Collection<String> getCleanSQLs(final DatabaseType databaseType) {
        Collection<String> result = new LinkedList<>();
        for (SQLSet each : sqlSets) {
            result.addAll(each.getAllSQLContent(SQLType.Clean, databaseType));
            result.addAll(each.getDropUserSQLs(databaseType));
        }
        return result;
    }