apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: cannot commit - no transaction is active
Date Mon, 19 Nov 2007 20:51:26 GMT
On Mon, 2007-11-19 at 20:38 +0800, Learning apr wrote:
> I use the function:
> apr_dbd_transaction_start(driver, pool, sql,&transaction);
> to start a transaction.
> 
> But when I close this transaction with the function:
> apr_dbd_transaction_end(driver, pool, transaction);
> 
> It always gives the error message:
> 
> cannot commit - no transaction is active
> 
> What is the reason?

Hard to say without knowing what driver you're using.

Anyhow, you can always run you code through a debugger and stop to see
what actually happens when you attempt to start/end transaction.

-- 
Bojan


Mime
View raw message