Hi,

As often seems to happen, as soon as I sent out an e-mail, I found the answer.

In ComCondition::setSQLCODE (export/ComDiags.cpp), there are two environment 
variables that developers can set.

If you set LOOP_ON_ERROR to a SQL error number (without a minus sign), the code 
will loop forever when it encounters that error.

If you set ABORT_ON_ERROR to a SQL error number (again without a minus sign), 
the code will call abort().

Thanks,

Dave

From: Dave Birdsall
Sent: Wednesday, April 5, 2017 2:14 PM
To: [email protected]
Subject: I want to get a core file on a particular SQL error. How to do it?

Hi,

I dimly remember that there was a CQD or environment variable that one could 
use in a debug environment to cause a core when a particular SQL error occurs.

Can anyone supply the missing details?

Thanks,

Dave

Reply via email to