home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!timbuk.cray.com!mmc.mmmg.com!mmm.serc.3m.com!umn.edu!moose.cccs.umn.edu!mcj
- From: mcj@moose.cccs.umn.edu (Mark C. Jones)
- Subject: Checking for SQL errors after commit
- Message-ID: <26JAN199309454635@moose.cccs.umn.edu>
- News-Software: VAX/VMS VNEWS 1.41
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: moose.cccs.umn.edu
- Reply-To: mcj@moose.cccs.umn.edu
- Organization: Colon Cancer Control Study, University of Minnesota, Minneapolis
- Date: Tue, 26 Jan 1993 15:45:00 GMT
- Lines: 29
-
-
- In our 4gl code we are currently suppressing ingres errors from database
- selects / inserts / updates. We then check for the error in the subsequent
- statement using inquire_ingres.
-
- i.e. select a from tablex;
- inquire_ingres (error_no = errorno);
- if error_no !=0 then
- rollback;
- message 'Select error on tablex' with style = popup;
- rollback;
- return;
- endif;
-
- Current coding does not check for an sql error after a commit statement.
- I assume that an error can occur though during the commit and I am
- wondering how likely this occurrence is , or would any problem with the
- transaction log file have manifested itself before the commit was actually
- reached.
-
-
- ------------------------------------------------------------------
- Mark C. Jones (mcj@moose.cccs.umn.edu)
- CSC Partners
- 5500 Wayzata Blvd, Suite 1100
- Minneapolis MN 55416 USA
- +1 612 593 1122
- ------------------------------------------------------------------
-
-