Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

In databases.rake, drop_database missing else-clause

#3173

In http://github.com/rails/rails/blob/c3accd7ded9ceaaecad55a2b04940e1f... - the drop_database method uses a case/when to determine how to drop the database. It SHOULD have an else-clause reporting an unsupported adapter.

Reported by apeiros · September 9th, 2009 @ 01:17 PM

State: stale
Milestone: none
Assigned to: Ryan Bigg Ryan Bigg
Importance: none

Activity

  1. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from 2.3.4, db:drop, rake to 2.3.4, bugmash, db:drop, rake

    September 25th, 2009 @ 12:28 PM

  2. Daniel Hofstetter
  3. Daniel Hofstetter
    Daniel Hofstetter

    The patch adds the missing else-clause and raises an error in it.

    September 26th, 2009 @ 04:45 PM

  4. Daniel Hofstetter
    Daniel Hofstetter
    • Tag changed from 2.3.4, bugmash, db:drop, rake to 2.3.4, bugmash, bugmash-patch, bugmash-review, db:drop, rake

    September 26th, 2009 @ 04:55 PM

  5. Daniel Hofstetter
  6. Blue Box Jesse
    Blue Box Jesse

    +1

    2.3-stable patch applies successfully.

    Good idea and good fix.

    September 26th, 2009 @ 11:35 PM

  7. Anuj Dutta
    Anuj Dutta

    +1

    Applies successfully.

    September 26th, 2009 @ 11:43 PM

  8. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from 2.3.4, bugmash, bugmash-patch, bugmash-review, db:drop, rake to 2.3.4, bugmash-patch, bugmash-review, db:drop, rake

    September 27th, 2009 @ 12:01 PM

  9. Lenary
    Lenary
    • Tag changed from 2.3.4, bugmash-patch, bugmash-review, db:drop, rake to 2.3.4, bugmash-patch, bugmash-review, db:drop, patch, rake

    April 18th, 2010 @ 01:14 AM

  10. Lenary
    Lenary
    • Tag changed from 2.3.4, bugmash-patch, bugmash-review, db:drop, patch, rake to 2.3.4, bugmash-patch, bugmash-review, db:drop, incomplete, rake

    There seems to be no reason why this has not yet been fixed.

    In the meantime though, the problem still persists, but the files have moved quite a lot.

    the file you are all referring to is now located here in rails 3:

    http://github.com/rails/rails/blob/master/activerecord/lib/active_r...

    (i have not evaluated the patches for correctness or otherwise)

    good fix though!

    April 18th, 2010 @ 01:16 AM

  11. Ganesh Shankar
    Ganesh Shankar
    • Assigned user set to Ryan Bigg

    This patch needs tests.

    April 27th, 2010 @ 10:02 AM

  12. Rizwan Reza
    Rizwan Reza
    • Tag changed from 2.3.4, bugmash-patch, bugmash-review, db:drop, incomplete, rake to 2.3.4, bugmash, bugmash-patch, db:drop, incomplete, rake

    May 15th, 2010 @ 06:45 PM

  13. Diego Algorta
    Diego Algorta

    verified

    Submitting updated patch for rails master

    May 15th, 2010 @ 07:20 PM

  14. Diego Algorta
    Diego Algorta

    Submitting patch for 2-3-stable too. Original Author maintained.

    May 15th, 2010 @ 07:28 PM

  15. Jeff Kreeftmeijer
    Jeff Kreeftmeijer

    -1

    This should have some tests if you ask me.

    May 16th, 2010 @ 12:18 AM

  16. Jeff Kreeftmeijer
    Jeff Kreeftmeijer

    Sorry, that should've been a "+". I completely agree with this patch, I just think it needs some tests. :)

    May 16th, 2010 @ 12:31 AM

  17. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Tag changed from 2.3.4, bugmash, bugmash-patch, db:drop, incomplete, rake to 234, bugmash, bugmash-patch, dbdrop, incomplete, rake
    • Importance changed from to

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:38 PM

  18. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:38 PM