El Viernes, 4 de Septiembre de 2009, Iñaki Baz Castillo escribió: > My scenario is simple: > > - My code does the #connect. > - Then creates a prepared stament. > - Runs as daemon. > - For each HTTP query it uses the prepared stament to perform a query. > - Then I stop MySQL. > - The next query receives "MySQL::Error" exception. > > PS: I'm using Rack and I think it uses Ruby threads which prevent errors to > be printted... >
Ok, I've added a "begin, rescue" in the Rack #call method so now I see the exception. There I see Sequel::DatabaseConnectionError. However, I still wonder how to detect that a prepared stament has been lost due to a DB server restart... Thanks a lot. -- Iñaki Baz Castillo <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. 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 -~----------~----~----~----~------~----~------~--~---
