IBM Support

PH05088: "ERROR 1215 (HY000) AT LINE 1528: CANNOT ADD FOREIGN KEY CONSTRAINT" WHEN RUNNING GHTESTER_MYSQL.SQL

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • STEPS TO REPRODUCE :
    Simply execute  ghtester_mysql.sql to create a result database
    in MySQL
    
    EXPECTED RESULTS :
    The script runs and the result database is created.
    
    ACTUAL RESULTS :
    You get an error of type :
    ERROR 1215 (HY000) at line 1528: Cannot add foreign key
    constraint
    
    
    WORKAROUND :
    1) From the SQL instructions "CREATE TABLE `test_cycle`" (line
    1509) to "CREATE TABLE `test_cycle_project_user`" (line 1558) ,
    the ENGINE=INNODB is not specified.
    2) The table "test_cycle_project" has the FOREIGN KEY
    (`project_id`) with REFERENCES `PROJECT`(`id`).
    PROJECT table is in uppercase.
    But the table is created in lowercase => CREATE TABLE `project`
    (line 27)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of Rational Integration Tester and MySQL results       *
    * databases.                                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The creation of a MySQL project results database on a        *
    * case-sensitive operating system such as Linux fails with     *
    * "Cannot add foreign key constraint" error.                   *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in release 9.5
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH05088

  • Reported component name

    RATL INTEGRA TE

  • Reported component ID

    5725G79IT

  • Reported release

    921

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-11-09

  • Closed date

    2019-03-26

  • Last modified date

    2019-03-26

  • 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

    RATL INTEGRA TE

  • Fixed component ID

    5725G79IT

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSBLQQ","label":"IBM Rational Test Workbench"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"921","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
26 March 2019