cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20126] New: - DatabaseAuthenticatorAction doesn't separate colomn names for sql statement
Date Wed, 21 May 2003 17:34:51 GMT
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=20126>.
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=20126

DatabaseAuthenticatorAction doesn't separate colomn names for sql statement

           Summary: DatabaseAuthenticatorAction doesn't separate colomn
                    names for sql statement
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: general components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: tek@leonid.de


I can confirm 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105343930822231&w=4
(apart from the workaround)

the following patch should fix this.

--- DatabaseAuthenticatorAction.java    Wed May 21 18:47:13 2003
+++ DatabaseAuthenticatorAction.new.java        Wed May 21 18:49:22 2003
@@ -218,6 +218,8 @@
             Object[] constraintValues = new Object[columns.length];
             int constraints = 0;
             for (int i = 0; i < columns.length; i++) {
+            if (i != 0)
+                    queryBuffer.append (", ");
                 String dbcol = columns[i].getAttribute("dbcol");
                 boolean nullable = false;
                 queryBuffer.append(dbcol);


/leo

Mime
View raw message