X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 62B45D98D4 for ; Sun, 9 Oct 2005 21:55:03 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 43429-02 for ; Mon, 10 Oct 2005 00:54:59 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 0CB12D7E1D for ; Sun, 9 Oct 2005 21:55:00 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j9A0t0Y5081055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 9 Oct 2005 18:55:03 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j9A0t07T059698; Sun, 9 Oct 2005 18:55:00 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j9A0sxmB059694; Sun, 9 Oct 2005 18:54:59 -0600 (MDT) (envelope-from mfuhr) Date: Sun, 9 Oct 2005 18:54:59 -0600 From: Michael Fuhr To: Daniel Clayton Cc: pgsql-interfaces@postgresql.org Subject: Re: Porting embedded SQL from Oracle to Postgres Message-ID: <20051010005459.GA59531@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/7 X-Sequence-Number: 5769 On Mon, Oct 10, 2005 at 10:57:37AM +1300, Daniel Clayton wrote: > It appears that the syntax EXEC SQL TYPE .. is ... ; is Oracle specific, is > there a matching syntax for ecpg? ECPG appears to have at least some support for EXEC SQL TYPE: I see code to handle it in preproc/preproc.y and some of the test programs use it. I haven't used it myself; maybe the programs in the source code under src/interfaces/ecpg/test will provide helpful examples. -- Michael Fuhr