cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pier Fumagalli (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-696) DatabaseAuthenticatorAction doesn't separate colomn names for sql statement
Date Tue, 25 Oct 2005 13:22:00 GMT
     [ http://issues.apache.org/jira/browse/COCOON-696?page=all ]

Pier Fumagalli updated COCOON-696:
----------------------------------

    Assign To: Torsten Curdt  (was: Torsten Curdt)

> DatabaseAuthenticatorAction doesn't separate colomn names for sql statement
> ---------------------------------------------------------------------------
>
>          Key: COCOON-696
>          URL: http://issues.apache.org/jira/browse/COCOON-696
>      Project: Cocoon
>         Type: Bug
>   Components: - Components: Avalon
>     Versions: 2.1.8-dev (Current SVN)
>  Environment: Operating System: All
> Platform: All
>     Reporter: leo leonid
>     Assignee: Torsten Curdt

>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message