Re: Connection string - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Connection string
Date
Msg-id 20060815115923.GA99861@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>)
Re: Connection string  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
List pgsql-general
On Sun, Aug 13, 2006 at 10:30:24AM +0200, Michael Meskes wrote:
> On Fri, Aug 11, 2006 at 04:40:36PM -0600, Michael Fuhr wrote:
> > Will you take care of it or should I submit a patch?  I've noticed
>
> I you have the time to write the patch I woul dappreciate it.

I'll submit a patch.  However, in the case of string literals not
working, is that a documentation bug or a code bug?  Are they
supposed to work?

> > a few other discrepancies between the documentation and actual
> > behavior, like examples with "VARCHAR val;" that the preprocessor
> > rejects with "ERROR: pointer to varchar are not implemented."
>
> Do you have an example? This surely looks like a bug.

See several code examples in the last half of the "Using Host
Variables" documentation:

http://www.postgresql.org/docs/8.1/interactive/ecpg-variables.html

Here's a complete example with code pasted from the documentation:

% cat foo.pgc
int main(void)
{
    EXEC SQL BEGIN DECLARE SECTION;
    int v1;
    VARCHAR v2;
    EXEC SQL END DECLARE SECTION;

    return 0;
}

% ecpg foo.pgc
foo.pgc:5: ERROR: pointer to varchar are not implemented

Is that a documentation bug or a code bug?

--
Michael Fuhr

pgsql-general by date:

Previous
From: MaXX
Date:
Subject: Partial indexes Vs standard indexes : Insert performance
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: Excluding a table from pg_dump