X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 20714D1B54A for ; Sun, 21 Sep 2003 06:45:59 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 15619-09 for ; Sun, 21 Sep 2003 03:45:22 -0300 (ADT) Received: from moutvdom.kundenserver.de (moutvdom.kundenserver.de [212.227.126.251]) by svr1.postgresql.org (Postfix) with ESMTP id 19064D1B54F for ; Sun, 21 Sep 2003 03:45:21 -0300 (ADT) Received: from [212.227.126.220] (helo=mrvdomng.kundenserver.de) by moutvdom.kundenserver.de with esmtp (Exim 3.35 #1) id 1A0xyD-0007sK-00 for pgsql-interfaces@postgresql.org; Sun, 21 Sep 2003 08:45:21 +0200 Received: from [80.128.78.93] (helo=FRITZweb) by mrvdomng.kundenserver.de with smtp (Exim 3.35 #1) id 1A0xyD-0005dZ-00 for pgsql-interfaces@postgresql.org; Sun, 21 Sep 2003 08:45:21 +0200 From: =?iso-8859-1?Q?J=FCrgen_Cappel?= To: Subject: ECPG and structure declaration Date: Sun, 21 Sep 2003 08:46:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/55 X-Sequence-Number: 4473 ECPG and structure declaration Hello, why is the following code fragment an error for ecpg ? --------------------------------------------- EXEC SQL BEGIN DECLARE SECTION; struct base { char basekey [ 26 ]; }; EXEC SQL END DECLARE SECTION; struct base b1[10]; struct base *b2; --------------------------------------------- ecpg gives the error message: demo.q:5: ERROR: syntax error at or near ";" Versions: - ecpg (PostgreSQL 7.3.3) 2.10.0 - Linux scaleo 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown My intention is to declare the structure type in an include file and define arrays, pointers, etc from the declaration in various .c files. What's wrong ? Cheers, Jürgen