Home
The Toolkit for Online Communities
17597 Community Members, 1 member online, 2416 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : db_transaction keeps failing : One Message

Forum OpenACS Q&A: Re: db_transaction keeps failing

Collapse
Posted by Kolja Lehmann on
I guess this is because og this code in db_abort_transaction:
    upvar "#0" [db_state_array_name_is -dbn $dbn] db_state

    db_with_handle -dbn $dbn db {
        # We set the abort flag to true.
        set db_state(db_abort_p,$db) 1
    }

So the state for this db handle is set to aborted for the whole request. I am trying to reset db_abort to 0 in my code now, because I don't know, where to do that in db_transaction. It should work, because i only have one pool defined for the db I use there. Should I post this in the bugtracker?