IBM Support

JR33702: USING MULTIPLE QUOTES IN CLI INSERT SCRIPT BEFORE DATE FIELD (WITH ESCAPE FIELD) FAILS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error description:
    
    Inserting data in table  through cli  scripts fails - in case it
    is using escape date field with multiple quotes preceeding it.
    
    Example:
    sqlprepare 1 "insert into t1(c1, c2) values ('hel''''''''lo',
    {d'2006-12-12'})" -3
    
    Here multiple quotes are used before ODBC escaped date like {d
    '2006-12-02'}.
    
    And error as follows with happen.
    
    SQL0104N  An unexpected token "{d '2006-12-02' }" was
     found following "''''''''".  Expected tokens may
    include:  "<rvc_element>".  SQLSTATE=42601
    
    As soon as an ODBC escaped date like {d '2006-12-02' } follows
    multiple quotes, the escape sequence is not replaced.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * USING MULTIPLE  QUOTES IN CLI INSERT SCRIPT BEFORE DATE      *
    * FIELD                                                        *
    * (WITH ESCAPE FIELD) FAILS                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * upgrade to v95fp5 or later.                                  *
    ****************************************************************
    

Problem conclusion

  • Fixed in v95fp5.
    USING MULTIPLE QUOTES IN CLI INSERT SCRIPT BEFORE DATE FIELD
    (WITH ESCAPE FIELD) WILL PASS.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR33702

  • Reported component name

    DB2 UDB WSE WIN

  • Reported component ID

    5765F3501

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-07-16

  • Closed date

    2010-02-24

  • Last modified date

    2010-12-13

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

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

    IC64059

Fix information

  • Fixed component name

    DB2 UDB WSE WIN

  • Fixed component ID

    5765F3501

Applicable component levels

  • R950 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:
13 December 2010