From: Alan Chen Date: 2002-05-11T08:19:50+09:00 Subject: Re: methods disappearing in ruby-mysql-2.4.2a On Sat, May 11, 2002 at 06:44:21AM +0900, Brad Hilton wrote: > /usr/local/lib/ruby/site_ruby/1.6/DBD/Mysql/Mysql.rb:368:in > `column_info': undefined method `fetch_fields' for # > (NameError) > from /usr/local/lib/ruby/site_ruby/1.6/dbi/dbi.rb:714:in > `column_names' > from /usr/local/lib/ruby/site_ruby/1.6/dbi/dbi.rb:695:in > `execute' > > ----------------------------- > > The strange thing is, the same exact command succeeds thousands of times > prior to this error. How could the Mysql object not contain the methods > "fetch_fields" and "free"? They are compiled in to the mysql.so file > which is necessary to create the Mysql object in the first place. How > could those methods just disappear? > > It is like the Mysql object had all of its methods removed somehow. > > Does anyone have any suggestions? I don't use ruby dbi with mysql, but my first reaction would be to wrap that error in an exception handler and collect more information about the object throwing the error. At the very least, I'd try to run the same insert data back through your logic. -alan -- Alan Chen Digikata LLC http://digikata.com