On Friday, March 23, 2012 12:15:21 PM UTC-7, veena-regroup wrote: > > Hi, > > I have a ruby script which connects to a MySQL server on a different > host and fetches data using the primary key for a specific model. I > have the models defined as Sequel models. The script works well for > most of the times and gets the data from the database. Occasionally we > have seen that the model data results in nil even though the data is > present in the database. I had put a fix to allow the model to query > for the data multiple times until some fixed threshold if it does not > find it for the first time. It had also failed to fetch the data after > these queries. Can anyone point me in the right direction on what > could be causing this? Also, when I restart the script which > essentially resets the sequel database connection things start to work > as usual and it is able to find all the data. Also, as I mentioned it > only happens very occasionally. Please respond to this. I am using > sequel-2.4.0 and Ruby-ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64- > linux]. Thanks in advance for your response.
Your version of ruby and Sequel are ancient, you should upgrade both. If you still have problems after upgrading to the current version of ruby (either 1.8.7 or 1.9.3) and Sequel (3.33.0), then please include the code you are using and a reproducible test case if possible. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/qstFJMiVnJcJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
