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?