IBM Support

IC70584: ADMIN_IS_INLINED AND ADMIN_EST_INLINE_LENGTH FUNCTIONS RAISE ERROR FOR SPATIAL TYPES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • SQL0245N issued when using ADMIN_IS_INLINED and
    ADMIN_EST_INLINE_LENGTH functions with spatial column types.
    
    For example, the following queries will fail with SQL0245N:
    
    1) select admin_is_inlined(feature) as is_inlined from cntry94
    
    SQL0245N The invocation of routine "ADMIN_IS_INLINED" is
    ambiguous. The argument in position "1" does not have a best
    fit. SQLSTATE=428F5
    
    2) select max(admin_est_inline_length(feature)) from cntry94
    
    SQL0245N The invocation of routine "ADMIN_EST_INLINE_LENGTH" is
    ambiguous. The argument in position "1" does not have a best
    fit. SQLSTATE=428F5
    
    Spatial types can be stored inline.  These functions should
    work.
    

Local fix

  • The following query can be used to determine if a spatial column
    is inlined:
       SELECT CASE
                WHEN 197 + LENGTH(<columnname>..points) <=
                   ( SELECT inline_length
                     FROM syscat.columns
                     WHERE tabschema = <tableschema>
                       AND tabname = <tablename>
                       AND colname = <columnname>)
                THEN 1
                ELSE 0
              END
       FROM <tableschema>.<tablename>
    
    Where <tableschema>, <tablename> and <columnname> are
    substituted with the desired schema, table and column names.
    
    A similar query can be used to return the estimated inline
    length.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The ADMIN_IS_INLINED and ADMIN_EST_INLINE_LENGTH functions   *
    * added in Version 9.7 result in error when used with spatial  *
    * column types. Inline support for spatial columns is          *
    * supported.  These functions should not result in error when  *
    * used with spatial column types.                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply Version 9.7 Fix Pack 4                                 *
    ****************************************************************
    

Problem conclusion

  • Functions ADMIN_IS_INLINED and ADMIN_EST_INLINE_LENGTH will not
    result in error when used with spatial column types.
    Problem was first fixed in Version 9.7 Fix Pack 4.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC70584

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-08-16

  • Closed date

    2011-04-28

  • Last modified date

    2011-04-28

  • 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 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC70584

Modified date: 28 April 2011