hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Steinbach (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-1690) HivePreparedStatement.executeImmediate(String sql) is breaking the exception stack
Date Tue, 05 Apr 2011 22:21:05 GMT

     [ https://issues.apache.org/jira/browse/HIVE-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carl Steinbach updated HIVE-1690:
---------------------------------

    Component/s: JDBC

> HivePreparedStatement.executeImmediate(String sql) is breaking the exception stack
> ----------------------------------------------------------------------------------
>
>                 Key: HIVE-1690
>                 URL: https://issues.apache.org/jira/browse/HIVE-1690
>             Project: Hive
>          Issue Type: Improvement
>          Components: JDBC
>            Reporter: Eli Griv
>            Priority: Minor
>
> in HivePreparedStatement.executeImmediate(String sql), the exception stack is broken,
so it's impossible to know which method throwed "Method not supported" 
> FIX :
> HivePreparedStatement.java
> L166
> -   throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode());
> +  throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode(), e);
> L168
> -   throw new SQLException(ex.toString(), "08S01");
> +  throw new SQLException(ex.toString(), "08S01", ex);

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message