beginTransaction not working on gateway scripts

beginTransaction with a blank datasource is not taking the default database connection when is invoked on the gateway context, i.e. a timer gateway script.

I’m getting the error “Cannot find database connection - name cannot be empty string.”

Thanks for letting us know. I was able to replicate this and will file a bug ticket.


BTW, if you use something like txId = system.db.beginTransaction(database="",timeout=5000) beginTransaction will use the default database without an error.


This has been fixed for 7.6.4-rc4