This project is archived and is in readonly mode.
AR Test failure on latest mysql
Reported by Rick | May 14th, 2008 @ 02:33 AM | in 2.1.1
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>.
Comments and changes to this ticket
-
Ryan Bates May 21st, 2008 @ 05:50 PM
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.
-
Repository May 31st, 2008 @ 08:36 PM
- 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
-
blythe February 13th, 2009 @ 04:25 AM
- 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))
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>