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

Re: Variable array sizes with PQexecParams

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Garcia, Joshua" <Joshua(dot)Garcia(at)xerox(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Variable array sizes with PQexecParams
Date: 2006-06-26 21:04:48
Message-ID: 22935.1151355888@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"Garcia, Joshua" <Joshua(dot)Garcia(at)xerox(dot)com> writes:
> If I want the number of elements in that array to vary with each
> execution, then I'd have to use the $1="'{foo,bar}'" method right?

AFAICS you could do it either way --- the pain about balances out,
once you consider the effort involved in doing the quoting correctly.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: LLCDate: 2006-06-26 22:01:32
Subject: Re: using vars in scripts
Previous:From: Garcia, JoshuaDate: 2006-06-26 20:39:56
Subject: Re: Variable array sizes with PQexecParams

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