Re: Re: Escape Processing problems

From: "Thomas O'Dowd" <tom(at)nooper(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Barry Lind <barry(at)xythos(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Re: Escape Processing problems
Date: 2001-09-04 15:00:41
Message-ID: 20010905000041.P32410@beast.uwillsee.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi Bruce,

I guess that wasn't exactly a patch that I sent in but rather a test
program with the new routine embeded so that other people could try
it out easily.

I'll mail in the patch later. I'm a little distracted right now with
something else. For the moment just delete the patch that you added
to the unapplied list.

Cheers,

Tom.

On Tue, Sep 04, 2001 at 10:57:10AM -0400, Bruce Momjian wrote:
>
> Your patch has been added to the PostgreSQL unapplied patches list at:
>
> http://candle.pha.pa.us/cgi-bin/pgpatches
>
> I will try to apply it within the next 48 hours.
>
> > Hmmm, after a little more testing, I fixed a problem with backslashes.
> > New code attached.
> >
> > Tom.
> >
> > On Thu, Aug 30, 2001 at 11:46:16AM +0900, Thomas O'Dowd wrote:
> > > Hi all,
> > >
> > > I found some time this morning to write and test a new EscapeSQL() method.
> > > I didn't make a patch for the driver yet as I'd like to hear some
> > > comments. It's a tad longer than the original code as it only replaces
> > > escape codes which appear in the SQL code and not inside strings.
> > >
> > > It's attached as a separate java program which you can run to test with
> > > various strings. Let me know if you think it is okay. It seems to work
> > > with what I've tested it with.
> > >
> > > Example:
> > > $ /usr/local/java/jdk1.3/bin/java esc "insert into test values ({d '2000-12-01'}, 'string of\\ \' {d mmmm}', {t '12:12:12'})"
> > > insert into test values ( '2000-12-01', 'string of\\ \' {d mmmm}', {t '12:12:12'})
> > >
> > > Do you think we should expand it to handle the other codes like {t and {ts ?
> > > The old routine only handles {d.
> > >
> > > Tom.
> > --
> > Thomas O'Dowd. - Nooping - http://nooper.com
> > tom(at)nooper(dot)com - Testing - http://nooper.co.jp/labs
>
> [ Attachment, skipping... ]
>
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026

--
Thomas O'Dowd. - Nooping - http://nooper.com
tom(at)nooper(dot)com - Testing - http://nooper.co.jp/labs

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-09-04 15:07:29 Re: Re: Escape Processing problems
Previous Message Bruce Momjian 2001-09-04 14:57:10 Re: Re: Escape Processing problems