Forum: Ruby on Rails no _dump_data is defined for class Mysql2::Result

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1db4dee348ee737c423a4262fcf398dd?d=identicon&s=25 Anand Vignesh (Guest)
on 2014-01-24 09:14
(Received via mailing list)
Hi there,

I'm Vignesh developer @ Rails application. I was now getting an issue
while
I'm migrating my existing application with rails '3.2.13' into rails
'4.1.beta1' .

This was my issue while i m signing in into my application

no _dump_data is defined for class Mysql2::Result


So if anyone could have some idea about the issue. Please share your
ideas
and it may be helpful for fixing it. :)


Thanks,

Vignesh.
Af2ce6689213fdb78913a9662b18da6b?d=identicon&s=25 Rick Lloyd (ricklloyd)
on 2014-01-24 15:23
(Received via mailing list)
you might do better with the Ruby on Rails: Core group...
1db4dee348ee737c423a4262fcf398dd?d=identicon&s=25 Anand Vignesh (Guest)
on 2014-01-28 07:38
(Received via mailing list)
Hey Rick,

I'm new to ROR thats y i'm facing many challenges..
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2014-01-28 18:41
(Received via mailing list)
On Friday, 24 January 2014 00:44:22 UTC-5, Anand Vignesh wrote:
>
>
> So if anyone could have some idea about the issue. Please share your ideas
> and it may be helpful for fixing it. :)
>
>
>
The Mysql2::Result class is a thin wrapper over the underlying C
interface
- in particular, it can do things like on-demand streaming of rows from
the
database. It's not Marshal-able because most of the state doesn't live
in
Ruby code.

As noted in the issue on the Mysql2 gem
(https://github.com/brianmario/mysql2/issues/275), the workaround is to
convert the Mysql2::Result instance to a hash or an array (fetching all
the
desired rows) *before* caching it.

--Matt Jones
1db4dee348ee737c423a4262fcf398dd?d=identicon&s=25 Anand Vignesh (Guest)
on 2014-01-29 06:17
(Received via mailing list)
Hi Jones,

 Its so kind of you. Thanks for your suggestion.
This topic is locked and can not be replied to.