[ 
https://issues.apache.org/jira/browse/CALCITE-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491868#comment-14491868
 ] 

YeongWei commented on CALCITE-585:
----------------------------------

Hi Julian, Will you accept a patch that fixed all the no implementation methods 
that throw the  UnsupportedOperationException() into 
SQLFeatureNotSupportedException() for AvaticaConnection, AvaticaStatement and 
AvaticaPreparedStatement?

For other methods with implementation, each of it may have to be addressed 
separately.

> Calcite throw UnsupportedOperationException instead of 
> SQLFeatureNotSupportedException
> --------------------------------------------------------------------------------------
>
>                 Key: CALCITE-585
>                 URL: https://issues.apache.org/jira/browse/CALCITE-585
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Ng Jiunn Jye
>            Assignee: Julian Hyde
>            Priority: Minor
>
> The unsupported JDBC method are throwing UnsupportedOperationException.
> This cause calcite jdbc client program fail to catch the exception and goes 
> to unhandled exception routine.  
> For example 
> AvaticaStatement.java
> public boolean getMoreResults() throws SQLException {
>     throw new UnsupportedOperationException();
>   }
> The expected exception for this is SQLFeatureNotSupportedException (a 
> subclass of SQLException). 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to