Re: dynamic sql in ecpg

From: Christof Petig <christof(at)petig-baender(dot)de>
To: Adolfo Verón <averon(at)mcanet(dot)com(dot)ar>
Cc: Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: dynamic sql in ecpg
Date: 2002-01-10 07:41:20
Message-ID: 3C3D45A0.7010106@petig-baender.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Adolfo Verón wrote:

> Dear Christof,
>
> I've developed an informix-interface which is based on ANSI dynamic sql
> using esql/c. Now I want to port that code to postgreSQL-ecpg and the
> question is:
>
> does ecpg support ANSI dynamic sql ? I've found problems with
> statements like this:
>
> EXEC SQL allocate descriptor
> EXEC SQL describe ... using sql descriptor
> EXEC SQL execute ... into [descriptor]
>
> I'm working on PostgreSQL 7.1.3 and ecpg 2.8.0.
> May I use PostgreSQL 7.2 which is in beta version?
>
> Your answer will be highly appreciated.
> Thanks in advance.
>
> Adolfo Verón.
> MCAnet S.A.
>
>
>

Please do not waste your time trying to use 7.1. A lot of dynamic sql
fixes went into 7.2 and if you still have any troubles please report
them (to me).

What will not work is:

using descriptor + set descriptor. This is simply not implemented at all.

You might use something similar to what do: a 7.1 database and 7.2s
ecpg/libecpg. Though if you do not have to maintain an existing database
you should use 7.2 for all.

Christof

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Meskes 2002-01-10 08:23:56 Re: [ECPG] generates bad code on declare/open
Previous Message Benjamin.Feinstein 2002-01-10 03:40:01 Re: [PATCH] notify support for DBD::Pg