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
Reported by Jeffrey Chupp | November 23rd, 2010 @ 06:57 PM | in 3.1
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.
Comments and changes to this ticket
-
Jeffrey Chupp November 23rd, 2010 @ 07:05 PM
- Tag changed from rake tasks, bugs, postgresql to rake tasks, bugs, patch, postgresql
2.3 patch
-
rails February 24th, 2011 @ 12:00 AM
- 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.
-
rails February 24th, 2011 @ 12:00 AM
- State changed from open to stale
-
Vijay Dev February 24th, 2011 @ 03:54 PM
- 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!
-
Vijay Dev February 24th, 2011 @ 03:54 PM
- 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
-
Santiago Pastorino February 24th, 2011 @ 04:49 PM
- State changed from stale to open
- Milestone set to 3.1
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>