Menu

#2959 (ok 3.3) Copy database shows errors when DB has foreign key

3.2.4
fixed
1
2014-08-28
2010-01-06
No

Copy database is showing an error when you click add constraints and the DB has a foreign constraint. The error is not being shown as the error window is a fixed size. This is also happening in 3.2.5-rc1

Discussion

  • Herman van Rink

    Herman van Rink - 2010-01-12

    Initial patch, open to review

     
  • Herman van Rink

    Herman van Rink - 2010-01-12
    • assigned_to: nobody --> helmo
     
  • Herman van Rink

    Herman van Rink - 2010-01-12

    I confirmed this in trunk.

    Some code to remove a constraint just before renaming was also removing when copying.
    Additionally I noticed that when " Add constraints" is selected and no constraints are present, that an empty query is then executed. Which results in an obvious error,

    The attached patch might be optimized a bit further, but should fix the problem.

     
  • Marc Delisle

    Marc Delisle - 2010-01-17

    Patch works for me!

     
  • Herman van Rink

    Herman van Rink - 2010-01-20

    Fixed in subversion, thanks for reporting.

     
  • Herman van Rink

    Herman van Rink - 2010-01-20
    • priority: 5 --> 1
    • summary: Copy database shows errors when DB has foreign key --> (ok 3.3) Copy database shows errors when DB has foreign key
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2010-03-08
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB