Re: [bug fix] connection service file doesn't take effect with ECPG apps - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: [bug fix] connection service file doesn't take effect with ECPG apps
Date
Msg-id 20131227115757.GA21708@feivel.credativ.lan
Whole thread Raw
In response to [bug fix] connection service file doesn't take effect with ECPG apps  ("MauMau" <maumau307@gmail.com>)
Responses Re: [bug fix] connection service file doesn't take effect with ECPG apps
List pgsql-hackers
On Tue, Dec 17, 2013 at 09:26:49PM +0900, MauMau wrote:
> [Problem]
> The ECPG app runs the statement:
> 
> EXEC SQL CONNECT TO 'tcp:postgresql://?service=my_service';
> ...
> ECPGconnect() parses the URI and produces an empty host name.  It
> passes an empty string as the value for "host" connection parameter
> to PQconnectdbParams().

Interestingly enough it works flawlessly on my system. Any idea where the
empoty host name comes from? Before accepting the patch I'd like to find out
why you got an empty host variable and I don't.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: trailing comment ghost-timing
Next
From: Michael Meskes
Date:
Subject: Re: [bug fix] ECPG app crashes due to SIGBUS on SPARC Solaris