Re: Connection string - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Connection string
Date
Msg-id 20060818205419.GA85221@winnie.fuhr.org
Whole thread Raw
In response to Re: Connection string  (Michael Meskes <meskes@postgresql.org>)
Responses Re: Connection string  (Michael Meskes <meskes@postgresql.org>)
List 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

pgsql-general by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: Migrating PostgreSQL database to MySQL/MS Access
Next
From: felix@crowfix.com
Date:
Subject: Query optimization and indexes