File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ class FullyQualifiedIdentifierTestSQLServer < ActiveRecord::TestCase
4242
4343 it 'should not use fully qualified table name in order clause' do
4444 table = Arel ::Table . new ( :table )
45- expected_sql = "SELECT * FROM [my.server].[db].[schema].[table] ORDER BY [table].[name]"
45+ expected_sql = "SELECT * FROM [my.server].[db].[schema].[table] ORDER BY [table].[name]"
4646 assert_equal expected_sql , table . project ( Arel . star ) . order ( table [ :name ] ) . to_sql
4747 end
4848
4949 it 'should use fully qualified table name in insert statement' do
5050 manager = Arel ::InsertManager . new
5151 manager . into Arel ::Table . new ( :table )
52- manager . values = manager . create_values [ Arel . sql ( '*' ) ] , %w{ a }
52+ manager . values = manager . create_values [ Arel . sql ( '*' ) ]
5353 expected_sql = "INSERT INTO [my.server].[db].[schema].[table] VALUES (*)"
5454 quietly { assert_equal expected_sql , manager . to_sql }
5555 end
You can’t perform that action at this time.
0 commit comments