I am using an Oracle database with LLBLGen v4.2 Final Feb 12th, 2015
According to the Oracle documentation: If you give two savepoints the same name, the earlier savepoint is erased
However if I attempt to reuse a savepoint name in an open transaction I receive the following error: There is already a savepoint defined with the name <_name_>.
I found the following code in the DataAccessAdapterCore.SaveTransaction method which explains where the exception comes from:
if (_savePointNames.ContainsKey(savePointName))
{
throw new ArgumentException("There is already a savepoint defined with the name '" + savePointName + "'", "savePointName");
}
What I don't understand is why this exists when the documentation indicates that reuse is supported. Even though I am using an older version of 4.2, I did check the latest source code and this exception would still be generated.