[Opensource] escaping quote for sapdb

Michael Rimov rimovm at centercomp.com
Sun Sep 22 01:05:26 PDT 2002


At 11:27 PM 9/20/2002 -0700, you wrote:
>hi Mike,
>
>I ran across this code regarding SapDB.  The Java doc implies that single 
>quote is supposed to be escaped by an additional single quote.

Hi Larry,

Yes, this is true

>however, the code replaces a single quote with a double quote character.


That's strange, since I've never had this problem!  Even looking at the 
code you sent me it should be removing all doublequotes (") and doubling up 
on single quotes (');

 > fieldFilter = new Filter(new String[] {"\'","\""},
 > new String[] {"\'\'",""});

The arrays are:

First array:  Strings to scan for:
Secont Array: Strings to replace matches in the first array for.  Index is 
the same so that string1[0] gets replaced by string2[0].

I run my main development environment with SAPDB right now, so I'm not 
having the problem you're encountering!  [Seems like this keeps 
happening... then 3 weeks later, I finally come across what you're talking 
about :) ]

                                                 -Mike





More information about the Opensource mailing list