IBM Support

JR30189: DB2COMMANDBUILDER FAILS WHEN USED WITH GENERATED COLUMNS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using a DB2CommandBuilder object to generate a statement in
    a .NET application, and it is based on a SELECT statement that
    includes a generated column, the UPDATE command will fail with a
    SQL0798N A value cannot be specified for column "col_name"
    which is defined as GENERATED ALWAYS.
    

Local fix

  • Instead of using the DB2CommandBuilder, build the update command
    manually .
    

Problem summary

  • ERROR DESCRIPTION:
    When using a DB2CommandBuilder object to generate a statement in
    a .NET application, and it is based on a SELECT statement that
    includes a generated column, the UPDATE command will fail with a
    SQL0798N A value cannot be specified for column "col_name"
    which is defined as GENERATED ALWAYS.
    
    LOCAL FIX:
    Instead of using the DB2CommandBuilder, build the update command
    manually .
    

Problem conclusion

  • First fixed in DB2 UDB version 9.5 FP3
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR30189

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-08-12

  • Closed date

    2009-05-22

  • Last modified date

    2009-05-22

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

    JR30172

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

Fix information

  • Fixed component name

    DB2 UDB ESE WIN

  • Fixed component ID

    5765F4101

Applicable component levels

  • R950 PSY

       UP

  • R810 PSN

       UP

  • R820 PSN

       UP

  • R910 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
22 May 2009