Informix Error -26189: Cannot use a <clause> clause with a SELECT statement into an </clause> external table.
Cause and resolution
Cannot use a <clause> clause with a SELECT statement into an </clause> external table.
The SELECT statement contains a FOR UPDATE or FORMAT "FIXED" clause. When the database server unloads to an external table, these clauses are not allowed.
Check the SELECT statement or when the SELECT cursor was defined, and make sure you do not include either of these clauses.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26189 fires when a SELECT unloading to an external table includes FOR UPDATE or
FORMAT 'FIXED' — per the official guidance.
- The
SELECTstatement (or the cursor it was defined with) includesFOR UPDATE, per the official guidance — the first named case; not allowed when unloading. - The
SELECTstatement (or the cursor it was defined with) includesFORMAT 'FIXED', per the official guidance — the second named case; not allowed when unloading.
Solutions / Resolution
- Remove
FOR UPDATE/FORMAT 'FIXED'from theSELECTstatement or its cursor definition, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond FOR UPDATE/FORMAT 'FIXED' used
while unloading to an external table.
Diagnostic Checks
- Check the
SELECTstatement and its cursor definition forFOR UPDATE/FORMAT 'FIXED', and remove either if present.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -26189 in this set yet.
A SELECT unloading to an external table included FOR UPDATE/FORMAT 'FIXED' — remove
it.