Re: Connection string

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Connection string
Date: 2006-08-18 20:54:19
Message-ID: 20060818205419.GA85221@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Aug 18, 2006 at 06:01:02PM +0200, Michael Meskes wrote:
> On Tue, Aug 15, 2006 at 07:31:31PM -0600, Michael Fuhr wrote:
> > Will that be a minor fix that can be backpatched or will it be
> > invasive enough to be fixed only in HEAD? I'll submit a documentation
>
> I just fixed it and applied the patch to 8.0 and 8.1 too. Please test
> it.

It works with a double-quoted string but not with a single-quoted
string as the documentation mentions.

% cat foo.pgc
#include <stdio.h>
int main(void)
{
ECPGdebug(1, stderr);
EXEC SQL CONNECT TO 'tcp:postgresql://localhost/test';
EXEC SQL DISCONNECT;
return 0;
}

% ecpg foo.pgc
foo.pgc:5: ERROR: syntax error at or near "'tcp:postgresql://localhost/test'"

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2006-08-18 23:01:58 Re: PITR Questions
Previous Message Colin DuPlantis 2006-08-18 19:00:41 Arrays and backslashes