Skip to content

Commit

Permalink
Reduce test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Mar 14, 2024
1 parent 91c573a commit 7e61cea
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/test/java/org/polypheny/jdbc/StatementTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void testMoreThanOneExecute() throws SQLException {


@Test
void testTwoPreparedStatement() throws SQLException {
void testPreparedStatementCleanup() throws SQLException {
try ( PreparedStatement p = con.prepareStatement( "INSERT INTO t(id, a) VALUES (?, ?)" ) ) {
p.setInt( 1, 4 );
p.setInt( 2, 4 );
Expand All @@ -98,18 +98,7 @@ void testTwoPreparedStatement() throws SQLException {

try ( Statement statement = con.createStatement() ) {
statement.execute( "DROP TABLE IF EXISTS t" );
statement.execute( "CREATE TABLE t(id INTEGER PRIMARY KEY, a INTEGER NOT NULL)" );
}

try ( PreparedStatement p = con.prepareStatement( "INSERT INTO t(id, a) VALUES (?, ?)" ) ) {
p.setInt( 1, 4 );
p.setInt( 2, 4 );
p.execute();
p.setInt( 1, 5 );
p.setInt( 2, 5 );
p.execute();
}

}


Expand Down

0 comments on commit 7e61cea

Please sign in to comment.