ActiveRecord > MySQL > undefined method `more_results'

A

Andrew Kirk

I am attempting to use ActiveRecord within a script I am writing to
process some data within a MySQL database.

In my development environment everything works perfectly, however, when
I deploy the script in the production environment, it fails with the
following error:

activerecord-3.0.0/lib/active_record/connection_adapters/mysql_adapter.rb:623:in
`select': undefined method `more_results' for #<Mysql:0x915c150>
(NoMethodError)

I have noted this error while using the "find," "where," and
"find_by_sql" methods.

I am using the following gems in both environments.

activerecord (3.0.0)
mysql (2.8.1)

The MySQL version, however, is different. In my development environment,
I am running 5.0.67 while the production environment is running the
5.0.32-Debian_7etch6-log Debian etch distribution.

I am at a loss as to how to diagnose this issue. Thanks in advance for
any suggestions!
 
R

Roger Pack

In my development environment everything works perfectly, however, when
I deploy the script in the production environment, it fails with the
following error:

activerecord-3.0.0/lib/active_record/connection_adapters/mysql_adapter.rb:623:in
`select': undefined method `more_results' for #<Mysql:0x915c150>
(NoMethodError)

I would step through where this call is *working* in development, see
where it should have been defined (but apparently isn't in production).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top