jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pier...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql QueryTagSupport.java
Date Tue, 29 Apr 2003 19:02:07 GMT
pierred     2003/04/29 12:02:07

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/sql Tag:
                        STANDARD_1_0_BRANCH QueryTagSupport.java
  Log:
  fix for bug 17388.
  Prepared statement closed right after ResultSet
  cached into the Result object.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.34.2.1  +1 -0      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql/QueryTagSupport.java
  
  Index: QueryTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql/QueryTagSupport.java,v
  retrieving revision 1.34
  retrieving revision 1.34.2.1
  diff -u -r1.34 -r1.34.2.1
  --- QueryTagSupport.java	10 Oct 2002 18:20:57 -0000	1.34
  +++ QueryTagSupport.java	29 Apr 2003 19:02:07 -0000	1.34.2.1
  @@ -247,6 +247,7 @@
   	    setParameters(ps, parameters);
   	    ResultSet rs = ps.executeQuery();
   	    result = new ResultImpl(rs, startRow, maxRows);
  +            ps.close();
   	}
   	catch (Throwable e) {
   	    throw new JspException(sqlStatement + ": " + e.getMessage(), e);
  
  
  

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


Mime
View raw message