Skip to content

Commit

Permalink
removed test that was committed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed Feb 19, 2024
1 parent a3e2a14 commit 445bc64
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/integrationTest/java/integration/tests/SpecialValuesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@
import integration.IntegrationTest;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
Expand All @@ -36,19 +30,6 @@ void afterAll() throws SQLException {
userConnection.close();
}

@Test
void longLiteral() throws FileNotFoundException, SQLException {
try (Statement statement = systemConnection.createStatement(); PrintWriter pw = new PrintWriter(new FileOutputStream("/tmp/myresult"))) {
for (int i = 1; i < 1000_000; i*=2) {
String columns = IntStream.range(0, i).boxed().map(j -> "'a'").collect(Collectors.joining(","));
String query = "select " + columns + " from information_schema.users";
pw.println(i);
pw.flush();
statement.executeQuery(query);
}
}
}

@ParameterizedTest
@ValueSource(strings = {"select 'inf'::float", "select '+inf'::float"})
void infFloatUserEngine(String query) throws SQLException {
Expand Down

0 comments on commit 445bc64

Please sign in to comment.