Ok, i found the error. It was in dB_transaction itself
in version @cvs-id 00-database-procs.tcl,v 1.19.2.5 2003/05/23 13:11:29 lars Exp
line 1974
if { $err_p || [db_abort_transaction_p]} {
# An error was triggered or the transaction has been aborted.
db_abort_transaction
must be
if { $err_p || [db_abort_transaction_p -dbn $dbn]} {
# An error was triggered or the transaction has been aborted.
db_abort_transaction -dbn $dbn
and some more missing -dbn switches further down the line.
should I do anything with this? post a patch or something?