This project is archived and is in readonly mode.

#6118 ✓stale
Aleksandar Simic

Object not loading on save in PosgreSQL schema

Reported by Aleksandar Simic | December 5th, 2010 @ 09:07 PM

Attached a patch for ActiveRecord tests that confirms this behaviour.

Saving an object under a Postgresql's schema doesn't update the object.

create_table "doodles", :force => true do |t|
  t.string   "name"
  t.datetime "created_at"
  t.datetime "updated_at"

I get the following weird behaviour when trying to save the object

ruby-1.9.2-p0 > db.schema_search_path = "one"
 => "one" 
ruby-1.9.2-p0 > db.schema_search_path
 => "one" 
ruby-1.9.2-p0 > @d =
 => #<Doodle id: nil, name: nil> 
ruby-1.9.2-p0 > = "bob"
 => "bob" 
ruby-1.9.2-p0 >
 => true 
ruby-1.9.2-p0 > @d.errors
 => {} 
ruby-1.9.2-p0 >
 => nil 
ruby-1.9.2-p0 > Doodle.last
 => #<Doodle id: 14, name: "bob"> 
ruby-1.9.2-p0 >
 => 14 
ruby-1.9.2-p0 > 

Comments and changes to this ticket

  • Aleksandar Simic

    Aleksandar Simic December 8th, 2010 @ 09:45 PM

    This is on rails 3.0.3 and 3.0.4

  • rails

    rails March 9th, 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

    rails March 9th, 2011 @ 12:00 AM

    • State changed from “open” to “stale”

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=""></a>

People watching this ticket