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