Re: ecpglib use PQconnectdbParams

Marko Kreen <markokr@gmail.com>

From: Marko Kreen <markokr@gmail.com>
To: Christian Ullrich <chris@chrullrich.net>
Cc: Michael Meskes <meskes@postgresql.org>, Peter Eisentraut <peter_e@gmx.net>, pgsql-hackers@postgresql.org
Date: 2012-02-06T16:50:44Z
Lists: pgsql-hackers
On Fri, Feb 03, 2012 at 01:15:30PM +0100, Christian Ullrich wrote:
> * Peter Eisentraut wrote:
> >I noticed ecpglib still uses PQconnectdb() with a craftily assembled
> >connection string.  Here is a patch to use PQconnectdbParams() instead.
> 
> +	const char *conn_keywords[6];
> +	const char *conn_values[6];
> 
> Shouldn't these be [7]? You can have up to 6 items, plus the terminator.

This bug is now in GIT.

-- 
marko