is the sqlca.sqlabc value unique for each response type

Started by Reid Thompsonover 23 years ago2 messagesgeneral
Jump to latest
#1Reid Thompson
Reid.Thompson@ateb.com

Are the values that are populated in sqlca.sqlabc unique to response
type? IE, when i get a failure for 'ERROR: Cannot insert a duplicate
key into unique index "myindexname"' will the sqlca.sqlabc value always
be the same?

I'm looking for a way to determine if my failure is of this type w/o
having to to a string compare on the error message.

thanks,
reid

#2Christoph Dalitz
christoph.dalitz@hs-niederrhein.de
In reply to: Reid Thompson (#1)
Re: is the sqlca.sqlabc value unique for each response type

Date: Wed, 20 Nov 2002 22:40:59 -0500
From: Reid Thompson <reid.thompson@ateb.com>

Are the values that are populated in sqlca.sqlabc unique to response
type? IE, when i get a failure for 'ERROR: Cannot insert a duplicate
key into unique index "myindexname"' will the sqlca.sqlabc value always
be the same?

I'm looking for a way to determine if my failure is of this type w/o
having to to a string compare on the error message.

Why don't you check sqlca.sqlcode (or in SQL92: SQLCODE)?
It should contain a specific error code.

Christoph Dalitz