X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3411FD1B1DC for ; Thu, 22 Jul 2004 14:29:27 -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 54682-07 for ; Thu, 22 Jul 2004 17:29:18 +0000 (GMT) Received: from ns1.syntegra.com (ns1.syntegra.com [150.143.16.2]) by svr1.postgresql.org (Postfix) with ESMTP id F0E09D1B1C8 for ; Thu, 22 Jul 2004 14:29:15 -0300 (ADT) Received: from [129.179.161.11] by ns1.syntegra.com with ESMTP for pgsql-interfaces@postgresql.org; Thu, 22 Jul 2004 17:29:13 Z Received: from jarjar.arh.us.syntegra.com (jarjar.arh.us.syntegra.com [129.179.16.105]) by ah-intrastore-01.us.syntegra.com with ESMTP for pgsql-interfaces@postgresql.org; Thu, 22 Jul 2004 12:29:13 -0500 Received: from [129.179.16.111] ([129.179.16.111] [129.179.16.111]) by jarjar.arh.cdc.com with ESMTP for pgsql-interfaces@postgresql.org; Thu, 22 Jul 2004 12:26:30 -0500 X-Mailer: Claris Emailer 2.0v3 , January 8, 1998 Date: Thu, 22 Jul 2004 12:29:03 -0500 Subject: Re: NULLs in ecpg From: To: Message-Id: In-Reply-To: <40F804B7.2090101@onesystem.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200407/38 X-Sequence-Number: 5044 What is the scope of a BEGIN or an implicit transaction in ECPG? Is it a physical subroutine, or can it span functions containing EXEC SQL statements? For example, if I have: void a (xxx) { EXEC SQL SELECT ... for UPDATE; EXEC SQL UPDATE ... } void b (xxx) { EXEC SQL begin; a(xxxx); a(yyyy); EXEC SQL COMMIT; } Do the multiple calls to 'a' remain in the same transaction? Wes