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.

This project is archived and is in readonly mode.

AR Test failure on latest mysql

#192

getting this for 5.0.51a when running the AR test suite:

test_nil_defaults_for_not_null_columns(DefaultTest)
    [./test/cases/defaults_test.rb:17:in `test_nil_defaults_for_not_null_columns'
     ./test/cases/defaults_test.rb:14:in `each'
     ./test/cases/defaults_test.rb:14:in `test_nil_defaults_for_not_null_columns'
     ./test/cases/../../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `__send__'
     ./test/cases/../../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run']:
name column should be DEFAULT "".
<""> expected but was
<nil>.

Reported by Rick · May 14th, 2008 @ 02:33 AM

State: resolved
Milestone: 2.1.1
Assigned to: Rick Rick
Importance: none

Activity

  1. Ryan Bates
    Ryan Bates

    I ran into this problem under MySQL 5.0.51b. Attached is a patch which checks the mysql version in the test and acts accordingly.

    May 21st, 2008 @ 05:50 PM

  2. Ryan Bates
    Ryan Bates

    Oops, sorry, that patch was bad. Please use this one.

    May 21st, 2008 @ 05:53 PM

  3. Repository
    Repository
    • State changed from new to resolved

    (from [f7015336f66d284cff8ecb89df9f430791ac57ea]) Fix default nil tests for MySQL 5.0.51 [#192 state:resolved]

    Signed-off-by: Joshua Peek

    http://github.com/rails/rails/co...

    May 31st, 2008 @ 08:36 PM

  4. blythe
    blythe
    • Tag set to activerecord, patch, tests

    I am still getting errors with mysql 5.1.3 and also 5.0.67 using the mysql 2.7 gem.

    Is anyone else having trouble with other versions?

    I noticed it was changed to the following on rails 2.2.2

    (Mysql.client_version < 50051 || (50100..50122).include?(Mysql.client_version))

    February 13th, 2009 @ 04:25 AM