* New: FWMARIADB:
New DATA lThrowError INIT .f.
If set to .T., any failed DML (INSERT,UPDATE,REPLACE,DELETE) operation
will raise a runtime error.
This applies to execution of any DML statements with method Execute()
or using methods Insert(...), Upsert(...) and Update(...)
This us provided to faclititate grouping of several DML statements/
methods inside TRY/CATCH block for Transactions.
Example Usage:
// --------
local lError := .f.
oCn:BeginTransaction()
oCn:lThrowError := .t.
TRY
oCn:Insert(....)
oCn:Update(...)
oCn:Execute( "INSERT ... " )
...
CATCH
lError := .t.
END
oCn:lThrowError := .f.
if lError
oCn:RollBack()
else
oCn:CommitTransaction()
endif
// --------
no esta funcionando..., dont work