ASF Bugzilla – Attachment 1517 Details for
Bug 7934
QueryTagSupport will always set maxRows to -1 if not using a context initialization parameter.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Possible fix for this issue. Worked in our env.
QueryTagSupport.patch (text/plain), 1.12 KB, created by
Ryan Lubke
on 2002-04-10 21:11:04 UTC
(
hide
)
Description:
Possible fix for this issue. Worked in our env.
Filename:
MIME Type:
Creator:
Ryan Lubke
Created:
2002-04-10 21:11:04 UTC
Size:
1.12 KB
patch
obsolete
>Index: QueryTagSupport.java >=================================================================== >RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql/QueryTagSupport.java,v >retrieving revision 1.14 >diff -u -r1.14 QueryTagSupport.java >--- QueryTagSupport.java 8 Apr 2002 22:16:01 -0000 1.14 >+++ QueryTagSupport.java 10 Apr 2002 21:09:23 -0000 >@@ -117,6 +117,7 @@ > private void init() { > scope = PageContext.PAGE_SCOPE; > startRow = 0; >+ maxRows = -999; > } > > >@@ -174,11 +175,13 @@ > * getting the <code>Connection</code> > */ > public int doStartTag() throws JspException { >- try { >- maxRows = Integer.parseInt( >- pageContext.getServletContext().getInitParameter(MAX_ROWS)); >- } catch (Exception ex) { >- maxRows = -1; >+ if (maxRows == -999) { >+ try { >+ maxRows = Integer.parseInt( >+ pageContext.getServletContext().getInitParameter(MAX_ROWS)); >+ } catch (Exception ex) { >+ maxRows = -1; >+ } > } > > setDataSource();
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 7934
: 1517