IBM Support

JR30172: 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.1 FP7
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR30172

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-08-08

  • Closed date

    2009-05-22

  • Last modified date

    2009-05-22

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

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

    JR30189

Fix information

  • Fixed component name

    DB2 UDB ESE WIN

  • Fixed component ID

    5765F4101

Applicable component levels

  • R910 PSY

       UP

  • R810 PSN

       UP

  • R820 PSN

       UP

  • R950 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 October 2021