Pier Fumagalli wrote
> 
> "Carsten Ziegeler" <[EMAIL PROTECTED]> wrote:
> 
> >> Was there a special reason you did this?
> >
> > Yes, another bug (I don't remember the number know). The query string
> > can contain whitespaces that have to be filtered out, like cariage
> > returns etc. Ok, thinking of this, it's not that easy.
> 
> Hmmm... If you need it, somewhere I have a "collapseWhitespace"
> implementation that we use... It's equivalent to trim plus replaces n
> occurrences of Char.isWhitespace(x) with a single space char...
> 
Great! I guess that's exactly what we need.
Ehm, just one thought: Is it ok to collapse all whitespaces of the
sql query? Or should we only collapse whitespaces outside of " or ',
so for example a statement like   text = "ggg  hhh  yyy", should
not be collapsed to text = "ggg hhh yyy". This is really more
complicated than it should.


> Where is the deleteWhitespace() method? I don't see it anywhere in the
> JavaDocs...
It's from the commons-lang subproject.

Carsten

Reply via email to