Use a separate flag to tell whether we're in a transaction so that we can remember the last transaction id.
Use a separate flag to tell whether we're in a transaction so that we
can remember the last transaction id.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb