Skip to content

Commit

Permalink
JDBC-391 Add test (no fix yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Apr 20, 2015
1 parent 955fa60 commit d082495
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/test/org/firebirdsql/jdbc/TestFBStatementGeneratedKeys.java
Expand Up @@ -293,6 +293,25 @@ public void testExecute_INSERT_columnNames_nonExistentColumn() throws Exception
closeQuietly(con);
}
}

// TODO In the current implementation executeUpdate uses execute, decide to test separately or not

/**
* See <a href="">JDBC-391</a>.
* <p>
* TODO: Broken until JDBC-391 implemented; add more tests
* </p>
*/
public void testExecute_SELECT_shouldNotThrowException() throws Exception {
Connection con = getConnectionViaDriverManager();
try {
Statement stmt = con.createStatement();

stmt.execute("SELECT * FROM RDB$DATABASE", Statement.RETURN_GENERATED_KEYS);
ResultSet rs = stmt.getResultSet();
assertTrue(rs.next());
} finally {
closeQuietly(con);
}
}
}

0 comments on commit d082495

Please sign in to comment.