jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-taglibs/jdbc/src/org/apache/taglibs/jdbc/resultset ResultSetTag.java
Date Fri, 09 Feb 2001 01:10:18 GMT
morgand     01/02/08 17:10:18

  Modified:    jdbc/src/org/apache/taglibs/jdbc/resultset ResultSetTag.java
  Log:
  some jdbc drivers choke on isBeforeFirst(), so
  I'm using next() instead
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-taglibs/jdbc/src/org/apache/taglibs/jdbc/resultset/ResultSetTag.java
  
  Index: ResultSetTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/jdbc/src/org/apache/taglibs/jdbc/resultset/ResultSetTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ResultSetTag.java	2001/01/31 00:58:42	1.2
  +++ ResultSetTag.java	2001/02/09 01:10:17	1.3
  @@ -130,8 +130,8 @@
           return EVAL_BODY_TAG;
         }
   
  -      if (_rset.isBeforeFirst() == false) { return SKIP_BODY; }
  -      _rset.next();
  +      if (_rset.next() == false) { return SKIP_BODY; }
  +      
       } catch (ClassNotFoundException e) {
         throw new JspTagException(e.toString());
       } catch (SQLException e) {
  
  
  

Mime
View raw message