Re: Single quote instead of double?

From: Vernon Wu <vernonw(at)gatewaytech(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org, Oguz Imre <maccube(at)comcast(dot)net>
Subject: Re: Single quote instead of double?
Date: 2003-03-15 18:35:08
Message-ID: RQMVRTRQLNIUOE9SO9409JFE9FCC81X.3e73725c@kimiko
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)comcast(dot)net> wrote:

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oguz Imre 2003-03-15 22:21:57 Re: Single quote instead of double?
Previous Message Oguz Imre 2003-03-15 18:28:10 Single quote instead of double?