hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1197698 - /hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java
Date Fri, 04 Nov 2011 18:03:27 GMT
Author: jvs
Date: Fri Nov  4 18:03:26 2011
New Revision: 1197698

URL: http://svn.apache.org/viewvc?rev=1197698&view=rev
Log:
HIVE-1690. HivePreparedStatement.executeImmediate(String sql) is breaking the
exception stack
(Ashutosh Chauhan via jvs)


Modified:
    hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java

Modified: hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java
URL: http://svn.apache.org/viewvc/hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java?rev=1197698&r1=1197697&r2=1197698&view=diff
==============================================================================
--- hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java (original)
+++ hive/trunk/jdbc/src/java/org/apache/hadoop/hive/jdbc/HivePreparedStatement.java Fri Nov
 4 18:03:26 2011
@@ -174,9 +174,9 @@ public class HivePreparedStatement imple
       }
       client.execute(sql);
     } catch (HiveServerException e) {
-      throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode());
+      throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode(), e);
     } catch (Exception ex) {
-      throw new SQLException(ex.toString(), "08S01");
+      throw new SQLException(ex.toString(), "08S01", ex);
     }
     resultSet = new HiveQueryResultSet(client, maxRows);
     return resultSet;



Mime
View raw message