ECPG connect by URL doesn't work

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: Michael Meskes <meskes(at)postgresql(dot)org>
Subject: ECPG connect by URL doesn't work
Date: 2006-01-31 11:31:24
Message-ID: 200601311231.25744.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

According to this documentation

http://www.postgresql.org/docs/8.1/static/ecpg-connect.html

it should work to connect in ECPG like this:

EXEC SQL CONNECT TO tcp:postgresql://bell.credativ.de:5432/pei AS myconn USER pei IDENTIFIED BY 'geheim';

(Or perhaps with single quotes, but that doesn't make a difference.)

However, in the server logs I just see this:

FATAL: database "'tcp:postgresql://bell.credativ.de:5432/pei'" does not exist

So apparently this URL parsing needs work.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Meskes 2006-01-31 13:33:46 Re: ECPG connect by URL doesn't work
Previous Message Philipp Reisner 2006-01-31 09:54:23 Re: Endless loop in ExecNestLoop