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.

db:test:clone_structure fails for Postgres & SQLite when your rails app has a space in the directory name

#6048

Postgres chokes on importing schema for Rails apps with spaces in the folder path, thinking that the path is actually multiple arguments. Quoting the file is sufficient to solve this.

This affects Rails 2.3 and Rails 3 versions. I'll attach a patch for both.

Reported by Jeffrey Chupp · November 23rd, 2010 @ 06:57 PM

State: open
Milestone: 3.1
Assigned to: Santiago Pastorino Santiago Pastorino
Importance: Low

Activity

  1. Jeffrey Chupp
    Jeffrey Chupp
    • Tag changed from rake tasks, bugs, postgresql to rake tasks, bugs, patch, postgresql

    2.3 patch

    November 23rd, 2010 @ 07:05 PM

  2. Jeffrey Chupp
  3. rails
    rails
    • State changed from new to open

    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 24th, 2011 @ 12:00 AM

  4. rails
    rails
    • State changed from open to stale

    February 24th, 2011 @ 12:00 AM

  5. Vijay Dev
    Vijay Dev
    • Assigned user set to Santiago Pastorino

    The issue still exists in master. Tested for SQLite as well and that too fails when the path has a space in it. Here's a latest patch (Rails 3) that fixes both SQLite and PostgreSQL.

    @Santiago: Please open this issue again. Thanks!

    February 24th, 2011 @ 03:54 PM

  6. Vijay Dev
    Vijay Dev
    • Title changed from db:test:clone_structure fails for postgres when your rails app has a space in the directory name to db:test:clone_structure fails for Postgres & SQLite when your rails app has a space in the directory name

    February 24th, 2011 @ 03:54 PM

  7. Santiago Pastorino
    Santiago Pastorino
    • State changed from stale to open
    • Milestone set to 3.1
    • Importance changed from to Low

    February 24th, 2011 @ 04:49 PM