You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2003/03/13 15:45:15 UTC

RE: cvscommit:cocoon-2.0/src/java/org/apache/cocoon/transformationSQLTransformer.java

Pier Fumagalli wrote:
> > Luca just suggested to simply use a
> > String query = StringUtils.replace(sb.toString(), "\r", " ", -1);
> > 
> > which could solve the problems as well.
> 
> Shouldn't it raise the same problem of when stuff is in "" strings???
> 
Yes, it should, but I assume that \r is never alone; it always comes
with a \n and therefore only removing \r should be ok, I guess.

Carsten


Re: cvscommit:cocoon-2.0/src/java/org/apache/cocoon/transformationSQLTransforme r.java

Posted by Pier Fumagalli <pi...@betaversion.org>.
"Carsten Ziegeler" <cz...@s-und-n.de> wrote:

> Pier Fumagalli wrote:
>>> Luca just suggested to simply use a
>>> String query = StringUtils.replace(sb.toString(), "\r", " ", -1);
>>> 
>>> which could solve the problems as well.
>> 
>> Shouldn't it raise the same problem of when stuff is in "" strings???
>> 
> Yes, it should, but I assume that \r is never alone; it always comes
> with a \n and therefore only removing \r should be ok, I guess.

That if you don't own a Macintosh, of course...

    Pier (who owns a Macintosh)