Re: quote_boolean() and friends missing

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Markus Bertheau ☭ <twanger(at)bluetwanger(dot)de>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: quote_boolean() and friends missing
Date: 2005-06-20 14:32:52
Message-ID: 20050620073005.Q82213@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 20 Jun 2005, Tom Lane wrote:

> Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <twanger(at)bluetwanger(dot)de> writes:
> > Maybe quote_* is not the right name, but the functionality is needed.
>
> I don't think so --- at least not in plpgsql, which can do this already.
> Just assign the value to a text variable and then use quote_literal.

Would that work for a bytea with embedded nul characters or does that run
the risk of terminating the value early?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-06-20 14:39:08 Re: quote_boolean() and friends missing
Previous Message Markus Bertheau ☭ 2005-06-20 14:25:10 Re: quote_boolean() and friends missing