We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bebee28 commit 436a747Copy full SHA for 436a747
test/cases/order_test_sqlserver.rb
@@ -93,6 +93,12 @@ class OrderTestSqlserver < ActiveRecord::TestCase
93
assert_equal post1, Post.order(order).first
94
end
95
96
+ should 'support inline function with parameters' do
97
+ order = "SUBSTRING(title, 1, 3)"
98
+ post1 = Post.create :title => 'AAA Post', :body => 'Test cased orders.'
99
+ assert_equal post1, Post.order(order).first
100
+ end
101
+
102
should 'support primary: inline function, secondary: column' do
103
order = "LEN(title), body"
104
post1 = Post.create :title => 'A', :body => 'AAA Test cased orders.'
0 commit comments