pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: wespvp@syntegra.com
To: pgsql-interfaces@postgresql.org
Subject: Re: NULLs in ecpg
Date: Thu, 22 Jul 2004 12:29:03 -0500
Message-ID: <BD25638F.F5C3%wespvp@syntegra.com> (raw)
In-Reply-To: <40F804B7.2090101@onesystem.com>

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  




view thread (6+ messages)  latest in thread

Message-ID: <BD25638F.F5C3%wespvp@syntegra.com>
Permalink:  ../BD25638F.F5C3%25wespvp@syntegra.com/
Also on:    postgresql.org/message-id/BD25638F.F5C3%wespvp@syntegra.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: wespvp@syntegra.com
  Subject: Re: NULLs in ecpg
  In-Reply-To: <BD25638F.F5C3%wespvp@syntegra.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox