IC79989: INLINED SQL FUNCTION IN LIKE PATTERN EXPRESSION FAILS WITH SQLCODE -901 "UNKNOWN FUNCTION PROTOCOL

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as user error.

Error description

  • Compiling a query that references an inlined SQL function in a
    LIKE pattern expression fails with the following error:
    
    SELECT * FROM T WHERE C1 LIKE SQLFUNC(C2)
    SQL0901N  The SQL statement failed because of a non-severe
    system error.
    Subsequent SQL statements can be processed.  (Reason "Unknown
    function
    protocol".)  SQLSTATE=58004
    

Local fix

  • Move the SQL function reference into the FROM clause, for
    example:
    SELECT * FROM T, TABLE( VALUES( SQLFUNC(C2) ) ) F(P) WHERE C1
    LIKE F.P
    

Problem summary

Problem conclusion

Temporary fix

Comments

  • The problem is fixed
    

APAR Information

  • APAR number

    IC79989

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED USE

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-24

  • Closed date

    2013-03-29

  • Last modified date

    2013-03-29

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

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

    IC84293

Fix information

Applicable component levels



Rate this page:

(0 users)Average rating

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.7

Reference #:

IC79989

Modified date:

2013-03-29

Translate my page

Machine Translation

Content navigation