Re: [bug fix] ECPG: fails to recognize embedded parameters

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com>
Subject: Re: [bug fix] ECPG: fails to recognize embedded parameters
Date: 2017-10-26 08:44:05
Message-ID: 1509007445.1807.56.camel@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> The cause is that next_insert() in ecpglib unconditionally skips the
> next character after the backslash.
>
> Could you review and commit the attached patch? I also attached the
> test program for convenience.

Thanks for spotting and fixing. I just committed your patch to master
and backported to 9.4, 9.5, 9.6 and 10. It doesn't apply cleanly to
9.3. But then it might not be important enough to investigate and
backported to this old a version.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2017-10-26 09:14:25 Re: Re: Is anything preventing us from allowing write to foreign tables from standby?
Previous Message Kyotaro HORIGUCHI 2017-10-26 08:18:56 Re: show "aggressive" or not in autovacuum logs