hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Griv (JIRA)" <j...@apache.org>
Subject [jira] Created: (HIVE-1690) HivePreparedStatement.executeImmediate(String sql) is breaking the exception stack
Date Tue, 05 Oct 2010 12:43:34 GMT
HivePreparedStatement.executeImmediate(String sql) is breaking the exception stack
----------------------------------------------------------------------------------

                 Key: HIVE-1690
                 URL: https://issues.apache.org/jira/browse/HIVE-1690
             Project: Hadoop Hive
          Issue Type: Improvement
            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", e);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message