Re: Single quote instead of double? - Mailing list pgsql-jdbc

From Vernon Wu
Subject Re: Single quote instead of double?
Date
Msg-id RQMVRTRQLNIUOE9SO9409JFE9FCC81X.3e73725c@kimiko
Whole thread Raw
In response to Single quote instead of double?  (Oguz Imre <maccube@comcast.net>)
Responses Re: Single quote instead of double?
List pgsql-jdbc
You need to pad a backslash in front of the apostrophe, or double up the apostrophe. Here is an example code:

        int k=0;
        while((k = src.indexOf("'", k)) >= 0) {
            src = src.substring(0, k) + "\\" + src.substring(k);
            k += 2;
        }
        return src;
*

15/03/2003 10:28:10 AM, Oguz Imre <maccube@comcast.net> wrote:





pgsql-jdbc by date:

Previous
From: Oguz Imre
Date:
Subject: Single quote instead of double?
Next
From: Oguz Imre
Date:
Subject: Re: Single quote instead of double?