Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group