IBM Support

JR29983: THROW AN EXCEPTION WHEN THE SCALE OF A DECIMAL VALUE IS LARGER THAN THE PRECISION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The Database Server Driver should throw an exception the scale
    property of a Decimal value is set to a value larger than the
    precision.
    
    For Decimal values = 0.0M the following error is thrown.
    
    -30020 ERROR [58009] [IBM] SQL30020N  Execution of the command
    or SQL statement failed
    because of a syntax error in the communication data stream that
    will affect the successful execution of subsequent commands and
    SQL statements:
    Reason Code "0x220A"("0200")"".  SQLSTATE=58009
    
    Other values don't report an error.
    

Local fix

  • Ensure that the properties scale and precision are set to
    appropriate values.
    

Problem summary

  • The Database Server Driver should throw an exception when the
    scale property of a Decimal value is set to a value larger than
    the precision.
    

Problem conclusion

  • Problem was first fixed in Version 9.5 Fix Pack 3.
    At a minimum, this fix should be applied on the client.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR29983

  • 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-07-23

  • Closed date

    2009-03-09

  • Last modified date

    2009-03-09

  • 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

    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:
09 March 2009