(self, select)
| 2144 | return select._fetch_clause |
| 2145 | |
| 2146 | def _use_top(self, select): |
| 2147 | return (select._offset_clause is None) and ( |
| 2148 | select._simple_int_clause(select._limit_clause) |
| 2149 | or ( |
| 2150 | # limit can use TOP with is by itself. fetch only uses TOP |
| 2151 | # when it needs to because of PERCENT and/or WITH TIES |
| 2152 | # TODO: Why? shouldn't we use TOP always ? |
| 2153 | select._simple_int_clause(select._fetch_clause) |
| 2154 | and ( |
| 2155 | select._fetch_clause_options["percent"] |
| 2156 | or select._fetch_clause_options["with_ties"] |
| 2157 | ) |
| 2158 | ) |
| 2159 | ) |
| 2160 | |
| 2161 | def limit_clause(self, cs, **kwargs): |
| 2162 | return "" |
no test coverage detected