statement = databaseConnection.get().getConnection().createStatement();
statement.execute(script);
}
catch (Exception e)
{
throw new DBUnitDataSetHandlingException("Unable to execute script: " + script, e);
}
finally
{
if (statement != null)
{
try
{
statement.close();
}
catch (SQLException e)
{
throw new DBUnitDataSetHandlingException("Unable to close statement after script execution.", e);
}
}
}
}