Re: ECPG ERROR FOR "exec sql BEGIN"

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: "chengong(at)kobundo(dot)ne(dot)jp" <chengong(at)kobundo(dot)ne(dot)jp>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: ECPG ERROR FOR "exec sql BEGIN"
Date: 2001-12-04 07:48:06
Message-ID: 20011204084806.A8782@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Fri, Nov 30, 2001 at 09:59:28PM +0900, chengong(at)kobundo(dot)ne(dot)jp wrote:
> I have used ECPG in my program.
>
> but run "exec sql BEGIN" after connect, have a error message like:
>
> "sql error BEGIN: already a transaction in progress"

That means you run in auto-transaction mode which is the default. Please use
"ecpg -t" to compile your program if you want to start the transactions
yourself.

The default is that there is always an open transaction.

Michael
--
Michael Meskes
Michael(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message dfg 2001-12-04 10:57:56 how can I use C++ interface in postgresql?
Previous Message Darko Prenosil 2001-12-04 07:47:33 Operator class and index