Forum: Ruby-core [ruby-trunk - Bug #7425][Open] Execute a script by active record, the console is crash.

Fc2590129d5efa61a05f476c27b71698?d=identicon&s=25 fsword (John Lee) (Guest)
on 2012-11-23 03:12
(Received via mailing list)
Issue #7425 has been reported by fsword (John Lee).

----------------------------------------
Bug #7425: Execute a script by active record, the console is crash.
https://bugs.ruby-lang.org/issues/7425

Author: fsword (John Lee)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3-p286


On my rails application, I write a script like this:

Stakeholder.find_each do |stakeholder|
  stakeholder.resource_name = 'aaa'
  stakeholder.save!
end

Then the pry console is crash. I do the same code on rake task and find
the same situation.

versions:

ruby: 1.9.3-p286
rails: 3.2.8
rvm: 1.16.17 (master)
activerecord: 3.2.8
database: mysql  Ver 14.14 Distrib 5.5.28
F24ff61beb80aa5f13371aa22a35619c?d=identicon&s=25 mame (Yusuke Endoh) (Guest)
on 2012-11-24 10:39
(Received via mailing list)
Issue #7425 has been updated by mame (Yusuke Endoh).

Status changed from Open to Feedback
Target version set to 2.0.0
ruby -v changed from 1.9.3-p286 to ruby 1.9.3p327 (2012-11-10 revision
37606) [x86_64-linux]

What's "Stakeholder"?
Please show us any reproducible code, or, disclose your rails
application.

Please assume that we are ignorant about rails, or, contact on rails
folks first.

You said "ruby: 1.9.3-p286", but the log says: "ruby 1.9.3p327
(2012-11-10 revision 37606) [x86_64-linux]".

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7425: Execute a script by active record, the console is crash.
https://bugs.ruby-lang.org/issues/7425#change-33809

Author: fsword (John Lee)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version: 2.0.0
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]


On my rails application, I write a script like this:

Stakeholder.find_each do |stakeholder|
  stakeholder.resource_name = 'aaa'
  stakeholder.save!
end

Then the pry console is crash. I do the same code on rake task and find
the same situation.

versions:

ruby: 1.9.3-p286
rails: 3.2.8
rvm: 1.16.17 (master)
activerecord: 3.2.8
database: mysql  Ver 14.14 Distrib 5.5.28
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 ko1 (Koichi Sasada) (Guest)
on 2013-02-17 05:59
(Received via mailing list)
Issue #7425 has been updated by ko1 (Koichi Sasada).

Target version changed from 2.0.0 to next minor

No feedback.
----------------------------------------
Bug #7425: Execute a script by active record, the console is crash.
https://bugs.ruby-lang.org/issues/7425#change-36363

Author: fsword (John Lee)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version: next minor
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]


On my rails application, I write a script like this:

Stakeholder.find_each do |stakeholder|
  stakeholder.resource_name = 'aaa'
  stakeholder.save!
end

Then the pry console is crash. I do the same code on rake task and find
the same situation.

versions:

ruby: 1.9.3-p286
rails: 3.2.8
rvm: 1.16.17 (master)
activerecord: 3.2.8
database: mysql  Ver 14.14 Distrib 5.5.28
233c279c012ebac792aaa805f966cbc7?d=identicon&s=25 steveklabnik (Steve Klabnik) (Guest)
on 2013-08-05 20:11
(Received via mailing list)
Issue #7425 has been updated by steveklabnik (Steve Klabnik).


It's been 8 months since some extra feedback was asked for, is there any
way we can get this information?
----------------------------------------
Bug #7425: Execute a script by active record, the console is crash.
https://bugs.ruby-lang.org/issues/7425#change-40914

Author: fsword (John Lee)
Status: Feedback
Priority: Normal
Assignee:
Category:
Target version: next minor
ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
Backport:


On my rails application, I write a script like this:

Stakeholder.find_each do |stakeholder|
  stakeholder.resource_name = 'aaa'
  stakeholder.save!
end

Then the pry console is crash. I do the same code on rake task and find
the same situation.

versions:

ruby: 1.9.3-p286
rails: 3.2.8
rvm: 1.16.17 (master)
activerecord: 3.2.8
database: mysql  Ver 14.14 Distrib 5.5.28
This topic is locked and can not be replied to.