commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject svn commit: r154156 - in jakarta/commons/proper/dbutils/trunk: project.xml src/java/org/apache/commons/dbutils/QueryRunner.java
Date Thu, 17 Feb 2005 14:37:24 GMT
Author: dgraham
Date: Thu Feb 17 06:37:22 2005
New Revision: 154156

URL: http://svn.apache.org/viewcvs?view=rev&rev=154156
Log:
Added SQLState and error code to rethrown 
SQLException.  PR: 33614

Modified:
    jakarta/commons/proper/dbutils/trunk/project.xml
    jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java

Modified: jakarta/commons/proper/dbutils/trunk/project.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/dbutils/trunk/project.xml?view=diff&r1=154155&r2=154156
==============================================================================
--- jakarta/commons/proper/dbutils/trunk/project.xml (original)
+++ jakarta/commons/proper/dbutils/trunk/project.xml Thu Feb 17 06:37:22 2005
@@ -115,7 +115,7 @@
       </roles>
     </developer>
   </developers>
-  
+
   <contributors>
     <contributor>
       <name>Péter Bagyinszki</name>
@@ -142,6 +142,15 @@
       <organization></organization>
       <roles>
         <role>Documentation</role>
+      </roles>
+    </contributor>
+    <contributor>
+      <name>Uli Kleeberger</name>
+      <id></id>
+      <email>ukleeberger@web.de</email>
+      <organization></organization>
+      <roles>
+        <role>Java Developer</role>
       </roles>
     </contributor>
     <contributor>

Modified: jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java?view=diff&r1=154155&r2=154156
==============================================================================
--- jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
(original)
+++ jakarta/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/QueryRunner.java
Thu Feb 17 06:37:22 2005
@@ -330,7 +330,7 @@
      * 
      * @param sql The query that was executing when the exception happened.
      * 
-     * @param params The query replacement paramaters; <code>null</code> is a

+     * @param params The query replacement parameters; <code>null</code> is a

      * valid value to pass in.
      * 
      * @throws SQLException
@@ -350,7 +350,8 @@
             msg.append(Arrays.asList(params));
         }
 
-        SQLException e = new SQLException(msg.toString());
+        SQLException e = new SQLException(msg.toString(), cause.getSQLState(),
+                cause.getErrorCode());
         e.setNextException(cause);
 
         throw e;



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message