Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Jeff Lawson's latest activity

Wednesday, August 18 2010
5346 Rails 3.0.0.0RC Bug -- MySQL connection left in unusable state after MysqlAda... was updated in Ruby on Rails
  • Jeff Lawson
    Jeff Lawson commented at 3:46 PM

    Hi Aaron,

    Sorry about that problem.

    Please find a 2-3-stable version of the patch attached :-)

Tuesday, August 17 2010
5346 Rails 3.0.0.0RC Bug -- MySQL connection left in unusable state after MysqlAda... was updated in Ruby on Rails
  • Jeff Lawson
    Jeff Lawson commented at 9:47 PM

    Thank you, Aaron :-)

    Yes, the same patch does need to be applied to the 2-3 branch too.

Tuesday, August 10 2010
5346 Rails 3.0.0.0RC Bug -- MySQL connection left in unusable state after MysqlAda... was created in Ruby on Rails
  • Jeff Lawson
    Jeff Lawson created the ticket at 2:32 PM

    When MysqlAdapter.select and MysqlAdapter.select_rows are used to call a stored procedure that returns a result set, the connection is left in a state that expe...

Tuesday, August 03 2010
5242 ActiveRecord::StatementInvalid: Mysql::Error: MySQL server has gone away was updated in Ruby on Rails
  • Jeff Lawson
    Jeff Lawson commented at 10:12 AM

    Alex's stack trace looks like this at the top:

    [GEM_ROOT]/gems/activerecord-3.0.0.rc/lib/active_record/connection_adapters/abstract_adapter.rb:202:in log_witho...
Monday, August 02 2010
5242 ActiveRecord::StatementInvalid: Mysql::Error: MySQL server has gone away was updated in Ruby on Rails
  • Jeff Lawson
    Jeff Lawson commented at 7:50 PM

    Alex,

    Completely remove New Relic RPM and see if you still have the problem.

    Jeff

  • Jeff Lawson
    Jeff Lawson commented at 6:11 PM

    Alex,

    I was wondering what check_for_valid_coupon in:

    app/controllers/app/users_controller.rb
    

    looked like.

    Jeff

  • Jeff Lawson
    Jeff Lawson commented at 2:57 PM

    Alex Le or James: please provide sample code that illustrates the problem, i.e. the code that invokes the ActiveRecord method that results in the error.

Sunday, August 01 2010
3151 MySQL adapter update to enable use of stored procedures was updated in Ruby on Rails
  • Jeff Lawson
    • Tag changed from stored procedure, 2.3.4, activerecord, adapters, bugmash, database, database.yml, mysql, patch to stored procedure, 2.3.4, 3.0.0.0rc, activerecord, adapters, bugmash, database, database.yml, mysql, patch
    by Jeff Lawson at 5:59 PM

    I am new to the formatting used here. Perhaps someone could delete 3151-32. The code sample in 3151-33 should be:

      @connection.query_with_result = true
      resu...
  • Jeff Lawson
    Jeff Lawson commented at 12:49 PM

    The problem experienced by Horace Ho results from the database connection being left in an unclean state by 'MysqlAdapter.select'. 'MysqlAdapter.select_rows' ha...

  • Jeff Lawson
    • Importance changed from to
    by Jeff Lawson at 12:38 PM

    The problem experienced by Horace Ho results from the database connection being left in an unclean state by 'MysqlAdapter.select'. 'MysqlAdapter.select_rows' ha...