ASF Bugzilla – Attachment 14757 Details for
Bug 17388
Result set created in query tag is never released + update tag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for query tag
resultsetpatch.txt (text/plain), 780 bytes, created by
Ivica Loncar
on 2005-04-19 16:59:55 UTC
(
hide
)
Description:
patch for query tag
Filename:
MIME Type:
Creator:
Ivica Loncar
Created:
2005-04-19 16:59:55 UTC
Size:
780 bytes
patch
obsolete
>--- QueryTagSupport.java.orig 2005-04-19 10:31:22.000000000 +0200 >+++ QueryTagSupport.java 2005-04-19 17:02:49.921147600 +0200 >@@ -210,15 +210,22 @@ > * if it was from the ResultSet. > */ > PreparedStatement ps = null; >+ ResultSet rs = null; > try { > ps = conn.prepareStatement(sqlStatement); > setParameters(ps, parameters); >- ResultSet rs = ps.executeQuery(); >+ rs = ps.executeQuery(); > result = new ResultImpl(rs, startRow, maxRows); > } > catch (Throwable e) { > throw new JspException(sqlStatement + ": " + e.getMessage(), e); > } finally { >+ if (rs != null) { >+ try { >+ rs.close(); >+ } catch (SQLException sqe) { >+ throw new JspException(sqe.getMessage(), sqe); >+ } > if (ps != null) { > try { > ps.close();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17388
:
13765
|
14757
|
19444