diff --git a/api/pom.xml b/api/pom.xml
index f696014..6f379e4 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -5,7 +5,7 @@
cc.carm.lib
easysql-parent
- 0.4.6
+ 0.4.7
4.0.0
diff --git a/api/src/main/java/cc/carm/lib/easysql/api/SQLQuery.java b/api/src/main/java/cc/carm/lib/easysql/api/SQLQuery.java
index 70a43be..c3cacf9 100644
--- a/api/src/main/java/cc/carm/lib/easysql/api/SQLQuery.java
+++ b/api/src/main/java/cc/carm/lib/easysql/api/SQLQuery.java
@@ -5,6 +5,7 @@ import cc.carm.lib.easysql.api.action.query.QueryAction;
import java.sql.Connection;
import java.sql.ResultSet;
+import java.sql.SQLException;
import java.sql.Statement;
import java.util.concurrent.TimeUnit;
@@ -50,6 +51,10 @@ public interface SQLQuery extends AutoCloseable {
ResultSet getResultSet();
+ default boolean containsResult(String columnName) throws SQLException {
+ return getResultSet() != null && getResultSet().getObject(columnName) != null;
+ }
+
/**
* 得到设定的SQL语句
*
diff --git a/demo/pom.xml b/demo/pom.xml
index 9d60ddd..a93434d 100644
--- a/demo/pom.xml
+++ b/demo/pom.xml
@@ -5,7 +5,7 @@
easysql-parent
cc.carm.lib
- 0.4.6
+ 0.4.7
4.0.0
diff --git a/impl/pom.xml b/impl/pom.xml
index 652e4eb..9d8ab90 100644
--- a/impl/pom.xml
+++ b/impl/pom.xml
@@ -5,7 +5,7 @@
easysql-parent
cc.carm.lib
- 0.4.6
+ 0.4.7
4.0.0
diff --git a/pom.xml b/pom.xml
index 35fad4f..58afa88 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,7 +19,7 @@
cc.carm.lib
easysql-parent
pom
- 0.4.6
+ 0.4.7
api
diff --git a/with-pool/beecp/pom.xml b/with-pool/beecp/pom.xml
index bd3e51f..b98a487 100644
--- a/with-pool/beecp/pom.xml
+++ b/with-pool/beecp/pom.xml
@@ -5,7 +5,7 @@
easysql-parent
cc.carm.lib
- 0.4.6
+ 0.4.7
../../pom.xml
4.0.0
diff --git a/with-pool/hikaricp/pom.xml b/with-pool/hikaricp/pom.xml
index a431337..91a4c0c 100644
--- a/with-pool/hikaricp/pom.xml
+++ b/with-pool/hikaricp/pom.xml
@@ -5,7 +5,7 @@
easysql-parent
cc.carm.lib
- 0.4.6
+ 0.4.7
../../pom.xml
4.0.0