Issue Type: Bug Bug
Affects Versions: 4.1.8
Assignee: Unassigned
Components: core
Created: 20/Nov/12 10:52 AM
Description:

ResultSet.findColumn() is not compliant with API.

The API states that findColumn() throws SQLException if the column is not found. However, a SQLGrammarException is thrown, breaking the API.

Simple test:
try { String testQuery = "SELECT 0"; PreparedStatement testStmt = connection.prepareStatement(testQuery); ResultSet rs1 = testStmt.executeQuery(); rs1.findColumn("dummycolname"); } catch (SQLGrammarException e) { throw new IllegalStateException("Wrong Exception", e); } catch (SQLException e) { // Correct exception }

Project: Hibernate ORM
Priority: Major Major
Reporter: Jose Freire
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira