[Opensource] escaping quote for sapdb
larry hamel
expresso at codeguild.com
Fri Sep 20 23:27:47 PDT 2002
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. however, the code replaces a single quote with a double quote character.
which part should be changed?
Thanks,
Larry
>* <p>This class provides escape handling mechanism for SapDB. Sap is a little
> * different from many other databases, probably because a lot of it is Pascal
> * based. Either way, it handles backslashes just fine, but it will choke on
> * single quotes unless they are made ''. Double quotes for now are still
> * gobbled up.</p>
> * @author Michael Rimov
> * @version $Revision: 1.1 $ on $Date: 2002/07/30 10:13:51 $
> */
>
>public class DoubleQuoteEscapeHandler implements EscapeHandler {
>...
>
> synchronized private void init() {
> if (fieldFilter == null) {
> fieldFilter = new Filter(new String[] {"\'","\""},
> new String[] {"\'\'",""});
> }
> }
More information about the Opensource
mailing list