Hi,
I wonder if anyone out there can help me ? I'm investigating an issue involving an
ESQLC program which has recently been rebuilt as part of an upgrade of our product
from Ingres 9.1 to version 9.2 (still quite an old version, I know). This is on Solaris.
The program passed test here, but is hitting some strange error on a customer's
site.
The error that comes up most of the time is:
E_OP0791 consistency check - Error generating an instruction
This is being reported on a fairly simple, non-dynamic query along the lines of:
Code:
EXEC SQL SELECT keysuffix,
chgaltkey,
posttypeind,
rechrgstart,
rechrgend,
rateable,
grossval,
rentpoints,
TRIM(refactcode),
TRIM(vatind),
TRIM(wrateind),
TRIM(wauth1id),
TRIM(wauth2id),
TRIM(wauth3id),
TRIM(CHAR(reviewdte)),
rvw_status
INTO :propfixed.keysuffix,
:propfixed.chgaltkey,
:propfixed.posttypeind,
:propfixed.rechrgstart,
:propfixed.rechrgend,
:propfixed.rateable,
:propfixed.grossval,
:hv_points,
:propfixed.refactcode,
:propfixed.vatind,
:propfixed.wrateind,
:propfixed.wauth1id,
:propfixed.wauth2id,
:propfixed.wauth3id,
:propfixed.reviewdte,
:propfixed.rvw_status
FROM rechgpd
WHERE propref = :propfixed.propref
AND rechrgstart <= :bparmrent.contdate1
AND (rechrgend > :bparmrent.contdate1
OR rechrgend = '');
This doesn't always seem to occur on the same values of propfixed.propref. The query
seems to run fine if run in isql.
One of our team thought that we might be able to cure this by running optimizedb on the table in question.
We did this, and got a different error, from a different part of the code:
E_SC0206 An internal error prevents further processing of this query.
Associated error messages
Looking in the error log, it seems as if this is being prompted by an earlier error:
E_AD5505_UNALIGNED < Expected internal error code ... No message needed. >
ADE has detected an attempt to compile an unaligned piece of data.
We had thought that the optimizedb had either fixed the original problem, and that we
were now seeing a different problem, or that it had "broken" something else. However, we have since seen the original error ("consistency check") occurring again, so it may
just have been coincidence, and nothing to do with the optimizedb.
This second error is in the FETCH at the bottom of a loop that encloses the SELECT that
was producing the first error.
Does anyone know of anything I can do to investigate this further ?
Thanks,
Alun.