You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I remember ActiveRecord had tests that a #to_i conversion was done on limit/offset which was good for params string options be passed down. Is this still the case? I noticed your tests just visit the object so "20-xyx" would not be 20 anymore. Does it not matter for other DBs to have LIMIT '20' vs LIMIT 20? In the case of SQL Server it will come out to TOP (N'20') if a string is passed in, unless I am missing something at this stage and what I am seeing for tests under 2.0.2 and passing :limit => '20'
0c20538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember ActiveRecord had tests that a #to_i conversion was done on limit/offset which was good for params string options be passed down. Is this still the case? I noticed your tests just visit the object so "20-xyx" would not be 20 anymore. Does it not matter for other DBs to have LIMIT '20' vs LIMIT 20? In the case of SQL Server it will come out to TOP (N'20') if a string is passed in, unless I am missing something at this stage and what I am seeing for tests under 2.0.2 and passing :limit => '20'