Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In JDBC adapter, generate "SELECT TOP(n)" for Microsoft SQL Server (MSSQL) 2008 and earlier, because it doesn't support "FETCH".
For MSSQL 2012 and higher, continue to generate "FETCH NEXT n ROWS".
I have started work here: https://github.com/julianhyde/calcite/tree/3344-top-n