Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7739
| From | Martin <spam@spam.spam> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: DBServer - saving changes without Commit during app crash |
| Date | 2015-02-11 15:55 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <mbftut$l7u$2@dont-email.me> (permalink) |
| References | <dd71ba2e-31e2-43f7-8ef9-f1f189ccef76@googlegroups.com> |
Easy, use this Transaction processing The Advantage Visual Objects and Vulcan.NET RDDs support transaction processing (TPS). The function AX_Transaction() with one of the parameters AX_BEGIN_TRANSACTION, AX_COMMIT_TRANSACTION, or AX_ROLLBACK_TRANSACTION control TPS. AX_Transaction() returns True if it is successful and False otherwise. If the argument is AX_ISACTIVE_TRANSACTION, the function returns True if a transaction is currently active. For a detailed description of the Advantage Transaction Processing System, see Transaction Processing System. On 10/02/2015 13:39, Robert Pope wrote: > Hi, > > I have an app that is attempting to make updates to a DBServer. An exception is being thrown during a FieldPut, which does not get handled and results in a application crash. Commit() is not being called. > > The problem that I am having is that any pending change in the DBServer, on any fields that are written to prior to the failing one, on the same record, are being saved. > > I have found that the record is being saved by Axit() on DBServer during app teardown. The following line specifically: > > (SELF:wWorkArea)->(VODBCloseArea( )) > > Is there a way to stop the record being updated? I only want the update to occur if I have called Commit(). >
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
DBServer - saving changes without Commit during app crash Robert Pope <cooeee@gmail.com> - 2015-02-10 05:39 -0800 Re: DBServer - saving changes without Commit during app crash "Jamal Assaf" <someone@example.com> - 2015-02-10 17:47 -0500 Re: DBServer - saving changes without Commit during app crash Martin <spam@spam.spam> - 2015-02-11 15:55 +0000 Re: DBServer - saving changes without Commit during app crash "Dirk (Belgium)" <dirk.dot.herijgers@pbprojects.dot.be> - 2015-02-12 08:20 +0000 Re: DBServer - saving changes without Commit during app crash Robert Pope <cooeee@gmail.com> - 2015-02-13 02:14 -0800
csiph-web