Topic: OO API FB3 Clearing of object of transaction after rollback
Whether it is necessary to cause release () after rollback ?
ITransaction has the interface IReferenceCounted , hence needs a call release () after 6 usages.
But, if to look in examples, it is possible notes the following template of usage:
ITransaction* tra = NULL; ... tra-> commit (&status); tra = NULL; ... if (tra) tra-> release ();
From what it is possible to conclude that after commit to cause release () it is not necessary.
But calls rollback in examples are not present.
Arises thinking, it is necessary what to operate but analogies with commit .
Or I am not right?