Portability layer for LIMIT emulation.