-
Notifications
You must be signed in to change notification settings - Fork 563
Rails 4.1 Support #331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 4.1 Support #331
Conversation
removing duplicate standard_dump
…fixed bind parameter tests to work with SQL server
…lect_methods_passing_a_association_relation
…lt in that the SQL was embedded in a call to sp_executesql, which seems ok to me
…ethods are defined in an if block
…ection_handler_test.rb by setting the RAILS_ENV to 'default_env'
…est_create_table_with_query and MigrationTest#test_create_table_with_query_from_relation
…hed negative response - fixes test ActiveRecord::Migration::ChangeSchemaTest#test_change_column_null
…ave to do it in our codebase also
…hat ActiveRecord::Relation merging works properly - tests RelationMergingTest#test_merging_reorders_bind_params and RelationMergingTest#test_relation_to_sql
…new_handlers since the regex doesn't work for T-SQL
…n_defined by adding a second column to the ORDER BY condition of the :ranked_by_comments scope of the Post model
… rollback_to_savepoint
|
Awesome work! |
|
Wow, this is great! I'm so glad you did this. |
|
@wbond You're work on this is awesome. I'm running all the tests now and many are now passing though unfortunately not all of them pass. Anyone else have a passing test suite? This is what I used to test: Did I miss something? Got any tips? You mentioned Rails 4.1.2 though only 4.1.1 has been released. Thank you. |
|
@muloka What failures are you seeing? |
All of the errors were related to either or both of these:
As for the two failed tests: |
|
@muloka I just ran the tests with Rails 4.1.1 on ruby 2.0.0p247 and 2.1.2 and got zero errors. I should mention though, that I do not have odbc set up or installed on my machine. Do you see any different results running: |
|
@wbond I just ran the tests in this environment using dblib and I got the same failures and errors:
Could it be that my version of SQL Server is too old? |
|
Ah, yes. Server 2005 doesn't have some date-related features. My guess is that there are some incompatibilities with certain transaction features. Unfortunately I don't have SQL Server 2005 to test with, or really the desire to do so. :-\ |
|
@wbond I don't blame you in the slightest. |
|
And thanks for your help! |
|
Just an FYI... Was able to finally obtain SQL Server 2012 and run the test suite. Everything passes. Hoorah! 👍 |
Tests all successfully run with Rail 4.1.2. Started with rails-4-1-0 branch and rebased it all on the latest master.
The commit messages should pretty well document why changes were made.