no _dump_data is defined for class Mysql2::Result

82 views
Skip to first unread message

Anand Vignesh

unread,
Jan 24, 2014, 12:44:22 AM1/24/14
to rubyonra...@googlegroups.com
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.

Rick

unread,
Jan 24, 2014, 9:21:40 AM1/24/14
to rubyonra...@googlegroups.com
you might do better with the Ruby on Rails: Core group...

Anand Vignesh

unread,
Jan 28, 2014, 1:36:59 AM1/28/14
to rubyonra...@googlegroups.com
Hey Rick,

I'm new to ROR thats y i'm facing many challenges..

Matt Jones

unread,
Jan 28, 2014, 12:40:02 PM1/28/14
to rubyonra...@googlegroups.com
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

Anand Vignesh

unread,
Jan 29, 2014, 12:16:06 AM1/29/14
to rubyonra...@googlegroups.com
Hi Jones,

 Its so kind of you. Thanks for your suggestion.
Reply all
Reply to author
Forward
0 new messages