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

Re: array_accum() and quoted content

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Raymond C(dot) Rodgers" <sinful622(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: array_accum() and quoted content
Date: 2008-07-28 19:11:04
Message-ID: 26183.1217272264@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
"Raymond C. Rodgers" <sinful622(at)gmail(dot)com> writes:
> The only difference I can see is that the quotes don't appear when the 
> values returned don't contain white space, and do when white space is 
> present.

That is per the definition of array output format:
http://www.postgresql.org/docs/8.2/static/arrays.html#AEN5876

> Is there any way to force consistency? My PHP code currently is 
> expecting quoted strings to be returned.

Better fix your PHP code.

			regards, tom lane

In response to

Responses

pgsql-general by date

Next:From: Raymond C. RodgersDate: 2008-07-28 19:23:21
Subject: Re: array_accum() and quoted content
Previous:From: Raymond C. RodgersDate: 2008-07-28 18:47:23
Subject: array_accum() and quoted content

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