IBM Support

IT42794: OPTIMIZING A STATEMENT NEXT AFTER A FAILED PREPARE OF A MULTI-STATEMENT INSERT FAILED IN OPINIT

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When a set of insert statement into different tables is used by
    a SQL editor
    GUI, the statements are prepared as a multi statement prepare.
    Given there
    is an error during the prepare because of a permission issue and
    error is returned
    correctly to the client , but the optimization of the very next
    statement failed
    in the optimizer
    
    Example
    
    insert into tab1 values ();
    insert into tab1 values ();
    
    insert into tab2 values (); -- error -275
    insert into tab2 values (); -- error -275
    
    insert into tab1 values ();
    
    and so on. All the insert statements are executed in one step.
    After then another statement is prepared which should run
    successful but failed in optimization.
    
    
    0x00000000014ddb8d (oninit) afstack
    0x00000000014db549 (oninit) afhandler
    0x00000000014d8282 (oninit) affail_interface
    0x00000000014e0be4 (oninit) mt_ex_throw_sig
    0x00000000014e2570 (oninit) afsig_handler
    0x00007fb889156b10 (Linux) <signal frame>
    0x000000000084b0ad (oninit) opinit.constprop.82
    0x0000000000844024 (oninit) op_opinit
    0x0000000000808f6e (oninit) sqoptim
    0x0000000000aa766e (oninit) bldstructs
    0x0000000000aa74ea (oninit) sqcmd
    0x0000000000aa6e1d (oninit) sq_prepare
    0x0000000000b93b4e (oninit) sqmain
    0x0000000001611759 (oninit) spawn_thread
    0x00000000014cac93 (oninit) th_init_initgls
    0x00000000015131af (oninit) startup
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Informix Server prior to 12.10.xC16 and 14.10.xC10. *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Informix Server 12.10.xC16 or 14.10.xC10.         *
    ****************************************************************
    

Problem conclusion

  • Fixed in Informix Server 12.10.xC16 and 14.10.xC10.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT42794

  • Reported component name

    INFORMIX SERVER

  • Reported component ID

    5725A3900

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-12-23

  • Closed date

    2023-05-15

  • Last modified date

    2023-06-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    INFORMIX SERVER

  • Fixed component ID

    5725A3900

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSGU8G","label":"Informix Servers"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C10","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
22 June 2023