| 544 | s2 = select(s1).limit(10) |
| 545 | |
| 546 | class MyCompiler(compiler.SQLCompiler): |
| 547 | def get_select_precolumns(self, select, **kw): |
| 548 | result = "" |
| 549 | if select._limit: |
| 550 | result += "FIRST %s " % self.process( |
| 551 | literal(select._limit), **kw |
| 552 | ) |
| 553 | if select._offset: |
| 554 | result += "SKIP %s " % self.process( |
| 555 | literal(select._offset), **kw |
| 556 | ) |
| 557 | return result |
| 558 | |
| 559 | def limit_clause(self, select, **kw): |
| 560 | return "" |
| 561 | |
| 562 | dialect = default.DefaultDialect() |
| 563 | dialect.statement_compiler = MyCompiler |
no outgoing calls