diff --git a/api/pom.xml b/api/pom.xml index f696014d..6f379e4b 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 70a43bec..c3cacf90 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 java.sql.Connection; import java.sql.ResultSet; +import java.sql.SQLException; import java.sql.Statement; import java.util.concurrent.TimeUnit; @@ -50,6 +51,10 @@ default long getExecuteTime() { 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 9d60dddf..a93434d3 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 652e4ebd..9d8ab906 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 35fad4ff..58afa883 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 bd3e51fa..b98a487c 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 a4313371..91a4c0c9 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