Re: [HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Tom Lane
Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <[EMAIL PROTECTED]> writes: >> Just assign the value to a text variable and then use quote_literal. > Isn't that a workaround? Or is that the way such things are done in > plpgsql? It's the way it's done --- plpgsql does this by invoking the datatype output f

Re: [HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Tom Lane
Stephan Szabo <[EMAIL PROTECTED]> writes: > On Mon, 20 Jun 2005, Tom Lane wrote: >> 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 th

Re: [HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Stephan Szabo
On Mon, 20 Jun 2005, Tom Lane wrote: > Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <[EMAIL PROTECTED]> 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

Re: [HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Markus Bertheau ☭
В Пнд, 20/06/2005 в 10:10 -0400, Tom Lane пишет: > Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <[EMAIL PROTECTED]> 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 t

Re: [HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Tom Lane
Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <[EMAIL PROTECTED]> 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.

Re: [HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Markus Bertheau ☭
В Пнд, 20/06/2005 в 10:01 -0400, Tom Lane пишет: > Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <[EMAIL PROTECTED]> writes: > > I'm writing an application with a lot of PL/pgSQL and am constructing > > SQL queries on the fly. The quote_literal() and quote_ident() functions > > proved very much needed. Sim

Re: [HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Tom Lane
Markus Bertheau =?UTF-8?Q?=E2=98=AD?= <[EMAIL PROTECTED]> writes: > I'm writing an application with a lot of PL/pgSQL and am constructing > SQL queries on the fly. The quote_literal() and quote_ident() functions > proved very much needed. Similarly, I need functions that return the SQL > representa

[HACKERS] quote_boolean() and friends missing

2005-06-20 Thread Markus Bertheau ☭
Hi, I'm writing an application with a lot of PL/pgSQL and am constructing SQL queries on the fly. The quote_literal() and quote_ident() functions proved very much needed. Similarly, I need functions that return the SQL representation of all the other datatypes, not just TEXT: quote_boolean (), quo