You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jo...@apache.org on 2002/09/06 09:21:20 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/lib/sql SQLDocument.java

johng       2002/09/06 00:21:20

  Modified:    java/src/org/apache/xalan/lib/sql SQLDocument.java
  Log:
  Fixed problem where a query that returned zero rows would incorrectly return a JDBC
  Exception. Note: This only occurs in streaming mode.
  
  Revision  Changes    Path
  1.20      +2 -2      xml-xalan/java/src/org/apache/xalan/lib/sql/SQLDocument.java
  
  Index: SQLDocument.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/lib/sql/SQLDocument.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- SQLDocument.java	17 Jan 2002 19:29:38 -0000	1.19
  +++ SQLDocument.java	6 Sep 2002 07:21:19 -0000	1.20
  @@ -678,9 +678,9 @@
           // In Streaming mode, the current ROW will always point back
           // to itself until all the data was read. Once the Query is
           // empty then point the next row to DTM.NULL so that the stream
  -        // ends.
  +        // ends. Only do this if we have statted the loop to begin with.
   
  -        if (m_StreamingMode)
  +        if (m_StreamingMode && (m_LastRowIdx != DTM.NULL))
           {
             // We are at the end, so let's untie the mark
             m_nextsib.setElementAt(DTM.NULL, m_LastRowIdx);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org