Closed toddharding closed 7 years ago
To be able to limit the number of returned values in a query
The query will fail and throw a syntax error
If we can detect the SQL Server version we can substitute in TOP statements instead of using FETCH OFFSET
Use limit in an ecto query e.g.
from(u in User, where: u.id == ^current_user, limit: 1)
Expected Behavior
To be able to limit the number of returned values in a query
Current Behavior
The query will fail and throw a syntax error
Possible Solution
If we can detect the SQL Server version we can substitute in TOP statements instead of using FETCH OFFSET
Steps to Reproduce (for bugs)
Use limit in an ecto query e.g.
Your Environment