Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 60EA29FC569 for ; Fri, 22 Jun 2007 14:28:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 94256-08 for ; Fri, 22 Jun 2007 14:28:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E08779FC55A for ; Fri, 22 Jun 2007 14:28:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5MHSGiX024095; Fri, 22 Jun 2007 13:28:16 -0400 (EDT) To: Jean-David Beyer cc: pgsql-sql@postgresql.org Subject: Re: Embedded C++ with ecpg? In-reply-to: <467BEC46.3010102@verizon.net> References: <467BEC46.3010102@verizon.net> Comments: In-reply-to Jean-David Beyer message dated "Fri, 22 Jun 2007 11:35:34 -0400" Date: Fri, 22 Jun 2007 13:28:16 -0400 Message-ID: <24094.1182533296@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/178 X-Sequence-Number: 28668 Jean-David Beyer writes: > What is the current status of (pre) compiling Embedded SQL in C++ programs? I just asked Michael Meskes about that (had you put a support request into Red Hat asking this?). He says : There are some C++ constructs that ecpg doesn't parse well, but they are : not that widely used afaik. Most of the code compiles cleanly. And : people used to workaround by just putting the sql part in a different : source file where they didn't need those constructs. : : Some effort has been made to make ecpg C++ compliant, so most should : work out of the box. regards, tom lane