DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9105>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9105

[PATCH] Fixed Bug in SQLTransformer when doing INSERT or UPDATE

           Summary: [PATCH] Fixed Bug in SQLTransformer when doing INSERT or
                    UPDATE
           Product: Cocoon 2
           Version: 2.0.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: sitemap components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When I use SQLTransformer to do a "INSERT" or "UPDATE" query instead of 
a "SELECT" it accidently tries to process the JDBC ResultSet, which is 
unassigned and leads to a NullPointerException.

>From what I can see the problem is a single line which returns true instead of 
false within the next method of the Query inner class. It should return false 
(for "no more result rows"), when an update or insert was executed instead of 
always true.
But I haven't this verified for calls to stored procedures which might be 
affected. (Don't know JDBC that good)

Appending the patch as attachment ...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to