You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2019/09/14 03:13:00 UTC

[jira] [Updated] (CALCITE-3344) In JDBC adapter, generate "SELECT TOP(n)" for MSSQL 2008 and earlier

     [ https://issues.apache.org/jira/browse/CALCITE-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde updated CALCITE-3344:
---------------------------------
    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]

  was:In JDBC adapter, generate "SELECT TOP(n)" for MSSQL 2008 and earlier, because it doesn't support "FETCH". For MSSQL 2012 and higher, continue to generate "FETCH NEXT n ROWS".


> In JDBC adapter, generate "SELECT TOP(n)" for MSSQL 2008 and earlier
> --------------------------------------------------------------------
>
>                 Key: CALCITE-3344
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3344
>             Project: Calcite
>          Issue Type: Bug
>          Components: jdbc-adapter
>            Reporter: Julian Hyde
>            Priority: Major
>
> 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]



--
This message was sent by Atlassian Jira
(v8.3.2#803003)