[Opensource] escaping quote for sapdb

larry hamel expresso at codeguild.com
Sun Sep 22 14:49:22 PDT 2002


oh!  i didn't understand the arrays usage (assumed pairs were horizontal, not vertical), and was speculating (should have used better language).  i'm not running into problems, I just didn't understand the code.

thanks for setting me straight :-) nevermind!

larry

At 01:05 AM 9/22/2002, you wrote:
>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
>
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/




More information about the Opensource mailing list