Skip site navigation (1) Skip section navigation (2)

Re: BUG #4642: EXECUTE work incorrect

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Eduard Deacoon <deac(at)yandex(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4642: EXECUTE work incorrect
Date: 2009-02-05 12:22:54
Message-ID: 20090205122254.GA1582@depesz.com (view raw or flat)
Thread:
Lists: pgsql-bugs
On Thu, Feb 05, 2009 at 12:11:51PM +0000, Eduard Deacoon wrote:
> WHERE '' || QUOTE_IDENT($3) || '' = '' ||
> $4||''::TEXT'' ||

make it:

WHERE '' || QUOTE_IDENT($3) || '' = '' ||
quote_literal($4)||''::TEXT'' ||

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

pgsql-bugs by date

Next:From: Gregory StarkDate: 2009-02-05 14:16:21
Subject: Re: BUG #4640: Drop leading zero in EXECUTE
Previous:From: Eduard DeacoonDate: 2009-02-05 12:11:51
Subject: BUG #4642: EXECUTE work incorrect

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group