haul 02/02/18 01:35:17 Modified: src/java/org/apache/cocoon/components/language/markup/xsp/java esql.xsl Log: Patch from "Andreas Neuenschwander" <[EMAIL PROTECTED]> This patch prevents a compile time error in nested esql statements. Revision Changes Path 1.10 +4 -5 xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl Index: esql.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/esql.xsl,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- esql.xsl 13 Feb 2002 01:09:07 -0000 1.9 +++ esql.xsl 18 Feb 2002 09:35:17 -0000 1.10 @@ -1,6 +1,6 @@ <?xml version="1.0"?> -<!-- $Id: esql.xsl,v 1.9 2002/02/13 01:09:07 vgritsenko Exp $--> +<!-- $Id: esql.xsl,v 1.10 2002/02/18 09:35:17 haul Exp $--> <!-- ============================================================================ @@ -56,7 +56,7 @@ * ESQL Logicsheet * * @author ? - * @version CVS $Revision: 1.9 $ $Date: 2002/02/13 01:09:07 $ + * @version CVS $Revision: 1.10 $ $Date: 2002/02/18 09:35:17 $ --> <xsl:stylesheet version="1.0" @@ -584,8 +584,7 @@ } while(_esql_query.getMoreResults()); } else { - int _esql_update_count = _esql_query.getStatement().getUpdateCount(); - if (_esql_update_count >= 0) { + if (_esql_query.getStatement().getUpdateCount() >= 0) { <xsl:apply-templates select="esql:update-results/*"/> } else{ @@ -656,7 +655,7 @@ </xsl:template> <xsl:template match="esql:update-results//esql:get-update-count"> - <xsp:expr>_esql_update_count</xsp:expr> + <xsp:expr>_esql_query.getStatement().getUpdateCount()</xsp:expr> </xsl:template> <xsl:template match="esql:results//esql:row-results">
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]