You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/02/01 04:29:22 UTC

[groovy] branch master updated: Sql.call() throw SQLException instead of Exception

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 7cb27ae  Sql.call() throw SQLException instead of Exception
7cb27ae is described below

commit 7cb27ae438194ccf6cfd645c0fd0100c62830966
Author: MoonFruit <dk...@gmail.com>
AuthorDate: Mon Feb 1 10:07:03 2021 +0800

    Sql.call() throw SQLException instead of Exception
---
 subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java b/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java
index 1a8b334..747776e 100644
--- a/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java
+++ b/subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java
@@ -3047,7 +3047,7 @@ public class Sql implements AutoCloseable {
      * @return the number of rows updated or 0 for SQL statements that return nothing
      * @throws SQLException if a database access error occurs
      */
-    public int call(String sql) throws Exception {
+    public int call(String sql) throws SQLException {
         return call(sql, EMPTY_LIST);
     }