Commit d4e5eb2f authored by terrymanu's avatar terrymanu
Browse files

for #601, add executeUpdate for DCL

parent 368892f6
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -44,6 +44,20 @@ public final class GeneralDCLIntegrateTest extends BaseDCLIntegrateTest {
        return IntegrateTestParameters.getParametersWithAssertion(SQLType.DCL);
    }
    
    @Test
    public void assertExecuteUpdate() throws SQLException {
        if (!getDatabaseTypeEnvironment().isEnabled()) {
            return;
        }
        try (Connection connection = getDataSource().getConnection()) {
            if (SQLCaseType.Literal == getCaseType()) {
                connection.createStatement().executeUpdate(getSql());
            } else {
                connection.prepareStatement(getSql()).executeUpdate();
            }
        }
    }
    
    @Test
    public void assertExecute() throws SQLException {
        if (!getDatabaseTypeEnvironment().isEnabled()) {