@@ -10,9 +10,9 @@ class InClauseTestSQLServer < ActiveRecord::TestCase
1010
1111 it 'removes ordering from subqueries' do
1212
13- ActiveSupport ::Notifications . subscribe ( 'sql.active_record' ) do |_name , _start , _finish , _id , payload |
14- puts payload [ :sql ]
15- end
13+ # ActiveSupport::Notifications.subscribe('sql.active_record') do |_name, _start, _finish, _id, payload|
14+ # puts payload[:sql]
15+ # end
1616
1717 # binding.pry
1818
@@ -30,9 +30,9 @@ class InClauseTestSQLServer < ActiveRecord::TestCase
3030 end
3131
3232 it 'does not remove ordering from subquery that includes a limit' do
33- ActiveSupport ::Notifications . subscribe ( 'sql.active_record' ) do |_name , _start , _finish , _id , payload |
34- puts payload [ :sql ]
35- end
33+ # ActiveSupport::Notifications.subscribe('sql.active_record') do |_name, _start, _finish, _id, payload|
34+ # puts payload[:sql]
35+ # end
3636
3737
3838
@@ -53,9 +53,9 @@ class InClauseTestSQLServer < ActiveRecord::TestCase
5353
5454 #
5555 it 'does not remove ordering from subquery that includes an offset' do
56- ActiveSupport ::Notifications . subscribe ( 'sql.active_record' ) do |_name , _start , _finish , _id , payload |
57- puts payload [ :sql ]
58- end
56+ # ActiveSupport::Notifications.subscribe('sql.active_record') do |_name, _start, _finish, _id, payload|
57+ # puts payload[:sql]
58+ # end
5959
6060 # EXEC sp_executesql N'SELECT [posts].* FROM [posts] WHERE [posts].[author_id] IN (SELECT [authors].[id] FROM [authors]
6161 # WHERE [authors].[name] IN (@0, @1, @2) ORDER BY [authors].[name] ASC OFFSET @3 ROWS)',
0 commit comments