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.

rake db:test:clone_structure fails when using Oracle adapter and :sql schema_format

#787

Executing the db:test:clone_structure Rake task when using the 'oracle' adapter and the SQL schema format fails with an Oracle error similar to

OCIError: ORA-00911: invalid character: INSERT INTO schema_migrations (version) VALUES ('2');

which is caused by the ";" at the end of the statement.

I've included a patch that solves the issue.

Reported by Emrys Ingersoll · August 9th, 2008 @ 01:39 AM

State: stale
Milestone: 3.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. bshand
    bshand
    • Tag changed from patch, railties, rake to patch, railties, rake

    I had the same problem, using Rails 2.1.0 and Oracle 10g -- which was preventing me from running "rake test:units" successfully.

    The above patch fixed the problem for me.

    September 19th, 2008 @ 12:44 PM

  2. Pratik
    Pratik
    • Assigned user set to Pratik
    • State changed from new to incomplete

    None in the core team uses Oracle, so sadly we have no way of verifying the patch. I'll apply the patch if we can get a few more +1s from people actually using Oracle, or even those maintaining Oracle adapter. Please make sure the backwards compatibility is maintained.

    Thanks.

    December 20th, 2008 @ 04:57 PM

  3. Emrys Ingersoll
    Emrys Ingersoll

    Not sure if this would be considered sufficient verification, but the oracle-enhanced adapter included this patch in 1.1.8.

    http://rsim.lighthouseapp.com/pr...

    http://rsim.lighthouseapp.com/pr...

    December 22nd, 2008 @ 10:10 PM

  4. Emrys Ingersoll
    Emrys Ingersoll

    Sorry, posted the same link twice =( I meant to post a link to the github commit:

    http://github.com/rsim/oracle-en...

    December 22nd, 2008 @ 10:11 PM

  5. Deleted User
    Deleted User

    Thanks for the patch. Works for me!

    May 14th, 2009 @ 06:24 PM

  6. bshand
    bshand

    This bug still affects Rails 2.2 and 2.3 (tested versions 2.2.3, 2.3.2 and 2.3.4) with Oracle 10g, and the same patch still works.

    November 18th, 2009 @ 10:20 AM

  7. timgentry
  8. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  9. Santiago Pastorino
    Santiago Pastorino
    • State changed from incomplete to open
    • 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 @ 05:05 PM

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

    February 2nd, 2011 @ 05:05 PM