Browse Source

add close(ResultSet) method

James 5 years ago
parent
commit
021c3471fc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/main/java/com/jfinal/plugin/activerecord/DbKit.java

+ 4 - 0
src/main/java/com/jfinal/plugin/activerecord/DbKit.java

@@ -114,6 +114,10 @@ public final class DbKit {
 		if (st != null) {st.close();}
 	}
 	
+	static final void close(ResultSet rs) throws SQLException {
+		if (rs != null) {rs.close();}
+	}
+	
 	static final void close(Statement st) throws SQLException {
 		if (st != null) {st.close();}
 	}