From: | Michael Meskes <meskes(at)topsystem(dot)de> |
---|---|
To: | emkxp01(at)mtcc(dot)demon(dot)co(dot)uk |
Cc: | pgsql-hackers(at)postgresql(dot)org (PostgreSQL Hacker) |
Subject: | Re: ecpg error (19th Feb cvsup) |
Date: | 1998-02-20 08:39:25 |
Message-ID: | 199802200839.JAA24004@gauss.topsystem.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Keith Parks writes:
> Hi,
>
> I've a new problem with ecpg.
>
> The latest source fails to process test2.pgc.
>
> Seems like it's choking on the new "whenever" clauses.
>
> [postgres(at)sparclinux test]$ make
> ecpg test2.pgc
> parse error in line 8
> make: *** [test2.c] Error 1
Oops! ecpg is correct the statement in line 8 isn't. The correct syntax is
exec sql whenever sqlerror do db_error(msg);
Note the 'do'.
I will send a patch later.
Michael
--
Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH
meskes(at)topsystem(dot)de | Europark A2, Adenauerstr. 20
meskes(at)debian(dot)org | 52146 Wuerselen
Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 1998-02-20 08:41:13 | Re: [HACKERS] RE: New ecgp code problem. |
Previous Message | Vadim B. Mikheev | 1998-02-20 07:08:27 | Re: [HACKERS] odd error creating index in -current... |