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

Re: ecpglib use PQconnectdbParams

From: Christian Ullrich <chris(at)chrullrich(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ecpglib use PQconnectdbParams
Date: 2012-02-03 12:15:30
Message-ID: jggj53$4rk$1@dough.gmane.org (view raw or flat)
Thread:
Lists: pgsql-hackers
* 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.

-- 
Christian Ullrich



In response to

Responses

pgsql-hackers by date

Next:From: Robert HaasDate: 2012-02-03 12:52:34
Subject: Re: patch for parallel pg_dump
Previous:From: Fujii MasaoDate: 2012-02-03 09:55:42
Subject: Re: Patch pg_is_in_backup()

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