This project is archived and is in readonly mode.
nil vs "" error in activerecord test
-
Karl Doody
mikeg1a on #railsbridge reports the same error, different test and setup though:
test_nil_defaults_for_not_null_columns
http://gist.github.com/159628mysql Ver 14.14 Distrib 5.1.28-rc, for apple-darwin9.4.0 (i686) using readline 5.1 -
Zac Williams
- Tag changed from 2.3.x, activerecord, active_record, fail, mysql, test to 2.3.x, activerecord, active_record, fail, mysql, patch, test
In activerecord/test/schema/schema.rb you will see that the :name attribute in defined for the :authors has the :null => false property. I have corrected the test in the attached patch.
-
Zac Williams
- Tag changed from 2.3.x, activerecord, active_record, fail, mysql, patch, test to 2.3.x, activerecord, active_record, fail, mysql, patch, test, tested
previously promised patch.
-
Erik Ostrom
Verified on mysql Ver 14.12 Distrib 5.0.45, for apple-darwin8.5.1 (i686) using readline 5.0
With the current patch, the test succeeds on MySQL, but now it fails on SQLite3.
-
Rohit Arondekar
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
