Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ActiveRecord > MySQL > undefined method `more_results'

Reply
Thread Tools

ActiveRecord > MySQL > undefined method `more_results'

 
 
Andrew Kirk
Guest
Posts: n/a
 
      09-27-2010
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!
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Roger Pack
Guest
Posts: n/a
 
      09-28-2010

> 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).
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Got "undefined method `split'" when installing gem dm-mysql-adapter Deche Pangestu Ruby 2 11-09-2010 01:34 PM
Using activerecord with mysql Rob Mauchel Ruby 12 11-23-2009 09:29 AM
instead of MySql, use ActiveRecord or other ORM Thufir Ruby 1 09-20-2009 09:27 AM
ActiveRecord for Python/MySQL Devraj Python 3 08-27-2007 12:23 AM
how to acces a MySQL table with ActiveRecord Jose Pepe Ruby 1 07-16-2006 03:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57