Menu

#3871 (ok 4.0.0-rc2) "check referential integrity" broken across databases

3.5.8
fixed
None
1
2013-06-11
2013-04-11
No

When configuring relations between tables using the phpMyAdmin relation feature, and these tables are in different databases, phpMyAdmin creates broken SELECT query in Operations > Check referential integrity - it completely ignores foreign_db set in relation configuration.

As a result, MySQL complains "Table 'table2.field2' doesn't exist". The query should refer to it as "database2.table2.field2" as "table2.field2" is not present in current database.

Discussion

  • Kasun Chathuranga

    Hi,
    I do not understand how you set these relations between different databases using the interface. Do you manually set these relations in phpmyadmin.pma__relation table?

     
  • Alexander Schuch

    Yes, manually.

     
  • Marc Delisle

    Marc Delisle - 2013-04-11
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2013-04-11
    • summary: "check referential integrity" broken across databases --> (ok 4.0.0-rc2) "check referential integrity" broken across databases
    • status: open --> open-fixed
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2013-05-03
    • Status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.