home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!mica.inel.gov!ux1!news.byu.edu!gatech!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!olivea!gossip.pyramid.com!pyramid!infmx!davek
- From: davek@informix.com (David Kosenko)
- Newsgroups: comp.databases.informix
- Subject: Re: The twin problem (was Re: HELP - Index Locks are creating DEADLOCKS)
- Message-ID: <1992Nov16.142151.22200@informix.com>
- Date: 16 Nov 92 14:21:51 GMT
- References: <OLIVER.92Nov10221419@snoopy.infix.de> <1992Nov11.203538.29976@informix.com> <OLIVER.92Nov13142149@snoopy.infix.de>
- Sender: news@informix.com (Usenet News)
- Organization: Informix Software, Inc.
- Lines: 31
-
- Oliver Okrongli writes:
- >In I-SE 4.0 the error number for "statement not available" was -515.
- >This changed to -554 in I-SE 4.1 whithout any obvious reason. Since
- >our code is designed to work with I-SE and I-OnLine whithout
- >recompilation one of the first things in database initialization is:
- >
- > $set isolation to dirty read;
- > if (!db_stmt_not_available())
- > db_error("set isolation to dirty read");
- >
- >To work with both releases the definition of db_stmt_not_available had
- >to be changed:
- >
- > #define db_stmt_not_available() (db_code() == -515 || db_code() == -554)
-
- Please allow me to offer you a (perhaps) better solution. If you
- check a 4.1 or better manual, you will find that following the database
- statement, the sqlca structure will contain a flag value indicating
- whether an SE or OnLine engine was started (it is one of the sqlwarn
- elements - it will also indicate logging/no logging and ansi/no ansi).
- If you check this then, you can easily set a global flag that can be
- checked for the very purpose of determining appropriate statements.
-
- Dave
-
-
- --
- Disclaimer: These opinions are not those of Informix Software, Inc.
- **************************************************************************
- "I look back with some satisfaction on what an idiot I was when I was 25,
- but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
-